VertexElementMaterial class

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.

Inheritance: VertexElementMaterialVertexElement

The VertexElementMaterial type exposes the following members:

Constructors

ConstructorDescription
initInitializes a new instance of the VertexElementMaterial class.

Properties

PropertyDescription
vertex_element_typeGets the type of the VertexElement
nameGets or sets the name.
mapping_modeGets or sets how the element is mapped.
reference_modeGets or sets how the element is referenced.
indicesGets the indices data

Methods

MethodDescription
set_indicesLoad indices
clearRemoves all elements from the direct and the index arrays.

See Also