Private
_accessibleAvailability of the model.
Private
_elementA vertex has several elements, xyz is 3.
Each index occupies several bytes, 8 bits per byte.
The storage type of the index, for example: UInt8.
The index buffer corresponding to the mesh
Private
_indicesIndex type array.
Private
_indicesIndex format.
A Mesh may consist of multiple vertex instances.
Private
_lastPrivate
_normalsArray of normal vectors.
A platform that provides rendering capabilities.
Private
_positionsArray of vertex positions.
Private
_uvArray of texture coordinates
The vertex buffer corresponding to the mesh.
Private
_vertexThe number of vertices in the model.
Vertex entity record table, used for caching.
Array of vertex elements.
Private
_verticesPrivate
_verticesProtected
glName.
Whether to access data of the mesh.
Vertex count of current mesh.
Protected
_setProtected
_setProtected
_setPrivate
_updatePrivate
_updateAdd sub-mesh, each sub-mesh can correspond to an independent material.
Sub-mesh
Start drawing offset, if the index buffer is set, it means the offset in the index buffer, if not set, it means the offset in the vertex buffer
Add sub-mesh, each sub-mesh can correspond to an independent material.
Sub-mesh
Start drawing offset, if the index buffer is set, it means the offset in the index buffer, if not set, it means the offset in the vertex buffer
Drawing count, if the index buffer is set, it means the count in the index buffer, if not set, it means the count in the vertex buffer
Optional
topology: MeshTopologyDrawing topology, default is MeshTopology.Triangles
Generated using TypeDoc
Create a model from an array of information such as vertices, indices, normal vectors, etc.