VertexElementMaterial

VertexElementMaterial class

Defines material index for specified components. A node can have multiple materials, the VertexElementMaterial is used to render different part of the geometry in different materials.

public class VertexElementMaterial : VertexElement

Constructors

NameDescription
VertexElementMaterial()Initializes a new instance of the VertexElementMaterial class.

Properties

NameDescription
Indices { get; }Gets the indices data
MappingMode { get; set; }Gets or sets how the element is mapped.
Name { get; set; }Gets or sets the name.
ReferenceMode { get; set; }Gets or sets how the element is referenced.
VertexElementType { get; }Gets the type of the VertexElement

Methods

NameDescription
override Clear()Removes all elements from the direct and the index arrays.
SetIndices(int[])Load indices
override ToString()String representation of vertex element.

See Also