Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MeshVisual"/> class.
 /// </summary>
 /// <param name="mesh">The mesh.</param>
 /// <param name="shader">The shader.</param>
 /// <param name="textureBindings">The texture bindings.</param>
 public MeshVisual(DefaultMesh mesh, IShaderProgram shader, IEnumerable <TextureBinding> textureBindings = null)
     : this(VAOLoader.FromMesh(mesh, shader), shader, textureBindings)
 {
 }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MeshVisual"/> class.
 /// </summary>
 /// <param name="mesh">The mesh.</param>
 /// <param name="shader">The shader.</param>
 /// <param name="textureBindings">The texture bindings.</param>
 public MeshVisual(DefaultMesh mesh, IShaderProgram shader, TextureBinding[] textureBindings)
 {
     shaderProgram        = shader;
     geometry             = VAOLoader.FromMesh(mesh, shader);
     this.textureBindings = textureBindings;
 }