Pass:draw

Draws a model.


Pass:draw(model, transform, nodeindex, children, instances)

Arguments

NameTypeDefaultDescription
modelModel The model to draw.
transformMat4 The transform of the model. Can also be provided as a position, 1-component scale, and rotation using a combination of Vectors and numbers.
nodeindexnumbernil The index of the node to draw. If nil, the root node is drawn.
childrenbooleantrue Whether the children of the node should be drawn.
instancesnumber1 The number of instances to draw.

Returns

Nothing


Pass:draw(model, transform, nodename, children, instances)

Arguments

NameTypeDefaultDescription
modelModel The model to draw.
transformMat4 The transform of the model. Can also be provided as a position, 1-component scale, and rotation using a combination of Vectors and numbers.
nodenamestringnil The name of the node to draw. If nil, the root node is drawn.
childrenbooleantrue Whether the children of the node should be drawn.
instancesnumber1 The number of instances to draw.

Returns

Nothing

See also