Mesh:getVertexAttribute
Returns the components of a specific attribute of a single vertex in the Mesh.
... = Mesh:getVertexAttribute(index, attribute)
Arguments
Name | Type | Description |
index | number | The index of the vertex to retrieve the attribute of. |
attribute | number | The index of the attribute to retrieve the components of. |
Returns
Name | Type | Description |
... | number | The components of the vertex attribute. |
Notes
Meshes without a custom format have the vertex position as their first attribute, the normal vector as the second attribute, and the texture coordinate as the third attribute.
See also
Mesh:setVertexAttribute
Mesh