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