Mesh:setVertexAttribute
Set the components of a specific attribute of a vertex in the Mesh.
Mesh:setVertexAttribute(index, attribute, ...)
Arguments
Name | Type | Description |
index | number | The index of the vertex to update. |
attribute | number | The index of the attribute to update. |
... | number | Thew new components for the attribute. |
Returns
Nothing
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:getVertexAttribute
Mesh