Mesh:setVertexAttribute

Set the components of a specific attribute of a vertex in the Mesh.

Mesh:setVertexAttribute(index, attribute, ...)

Arguments

NameTypeDescription
indexnumberThe index of the vertex to update.
attributenumberThe index of the attribute to update.
...numberThew 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