Beispiel #1
0
 public MeshInstance(GameState game,
     Surface meshSurface, Matrix4Uniform transformUniform, Vector3 position, float scale)
     : base(game)
 {
     this.instance = new MeshSurfaceInstance(meshSurface, transformUniform)
     {
         Translation = position,
         Scale = scale,
     };
 }
Beispiel #2
0
 public void UseOnSurface(Surface surface)
 {
     surface.SetShaderProgram(this);
 }