SubMeshDescriptor
csharp
public struct SubMeshDescriptorNamespace NodeWorld.Flux.
A submesh as SetSubMesh sets it: a range of the index buffer, its topology, the vertex added to its indices.
Fields
indexStart
csharp
public int indexStartThe first index of the submesh in the index buffer.
indexCount
csharp
public int indexCountThe count of indices.
topology
csharp
public MeshTopology topologyHow the indices are joined.
baseVertex
csharp
public int baseVertexAdded to every index of the submesh.
firstVertex
csharp
public int firstVertexThe first vertex the submesh uses (0: calculated).
vertexCount
csharp
public int vertexCountThe count of vertices the submesh uses (0: calculated).
Constructors
SubMeshDescriptor
csharp
public SubMeshDescriptor(int indexStart, int indexCount, MeshTopology topology = MeshTopology.Triangles)A submesh of indexCount indices from indexStart.
