Esempio n. 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,
     };
 }
Esempio n. 2
0
 public void UseOnSurface(Surface surface)
 {
     surface.SetShaderProgram(this);
 }