Mesh:getVertexAttribute

Get the components of a specific attribute of a single vertex in the Mesh.

... = Mesh:getVertexAttribute(index, attribute)

Arguments

NameTypeDescription
indexnumberThe index of the vertex to retrieve the attribute of.
attributenumberThe index of the attribute to retrieve the components of.

Returns

NameTypeDescription
...numberThe 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