MeshIndexType
Lens Studio v1.0.0+
Description
Possible index data types used by MeshBuilder. MeshIndexType.UInt16
is the value normally used.
Enum Value | Description |
---|---|
MeshIndexType.None |
No index data type |
MeshIndexType.UInt16 |
Unsigned integer, this is the value normally used |
Examples
// Constructs a new mesh builder
var builder = new MeshBuilder([
{ name: "position", components: 3 },
{ name: "normal", components: 3, normalized: true },
{ name: "texture0", components: 2 },
{ name: "color", components: 4 },
]);
builder.topology = MeshTopology.Triangles;
builder.indexType = MeshIndexType.UInt16;
Still Looking for help?
Visit Support