Pass:draw

Edit

Draws a model.







Arguments

NameTypeDefaultDescription
modelModel The model to draw.
xnumber0 The x coordinate to draw the model at.
ynumber0 The y coordinate to draw the model at.
znumber0 The z coordinate to draw the model at.
scalenumber1 The scale of the model.
anglenumber0 The rotation of the model around its rotation axis, in radians.
axnumber0 The x component of the axis of rotation.
aynumber1 The y component of the axis of rotation.
aznumber0 The z component of the axis of rotation.
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

Arguments

NameTypeDefaultDescription
modelModel The model to draw.
positionVec3 The position to draw the model at.
scalenumber1 The scale of the model.
orientationQuat The orientation of the model.
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

Arguments

NameTypeDefaultDescription
modelModel The model to draw.
transformMat4 The transform of the model.
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

Arguments

NameTypeDefaultDescription
modelModel The model to draw.
xnumber0 The x coordinate to draw the model at.
ynumber0 The y coordinate to draw the model at.
znumber0 The z coordinate to draw the model at.
scalenumber1 The scale of the model.
anglenumber0 The rotation of the model around its rotation axis, in radians.
axnumber0 The x component of the axis of rotation.
aynumber1 The y component of the axis of rotation.
aznumber0 The z component of the axis of rotation.
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

Arguments

NameTypeDefaultDescription
modelModel The model to draw.
positionVec3 The position to draw the model at.
scalenumber1 The scale of the model.
orientationQuat The orientation of the model.
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

Arguments

NameTypeDefaultDescription
modelModel The model to draw.
transformMat4 The transform of the model.
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