Pass:draw
EditDraws a model.
Arguments
Name | Type | Default | Description |
model | Model | The model to draw. | |
x | number | 0 | The x coordinate to draw the model at. |
y | number | 0 | The y coordinate to draw the model at. |
z | number | 0 | The z coordinate to draw the model at. |
scale | number | 1 | The scale of the model. |
angle | number | 0 | The rotation of the model around its rotation axis, in radians. |
ax | number | 0 | The x component of the axis of rotation. |
ay | number | 1 | The y component of the axis of rotation. |
az | number | 0 | The z component of the axis of rotation. |
nodeindex | number | nil | The index of the node to draw. If nil, the root node is drawn. |
children | boolean | true | Whether the children of the node should be drawn. |
instances | number | 1 | The number of instances to draw. |
Returns
Nothing
Arguments
Name | Type | Default | Description |
model | Model | The model to draw. | |
position | Vec3 | The position to draw the model at. | |
scale | number | 1 | The scale of the model. |
orientation | Quat | The orientation of the model. | |
nodeindex | number | nil | The index of the node to draw. If nil, the root node is drawn. |
children | boolean | true | Whether the children of the node should be drawn. |
instances | number | 1 | The number of instances to draw. |
Returns
Nothing
Arguments
Name | Type | Default | Description |
model | Model | The model to draw. | |
transform | Mat4 | The transform of the model. | |
nodeindex | number | nil | The index of the node to draw. If nil, the root node is drawn. |
children | boolean | true | Whether the children of the node should be drawn. |
instances | number | 1 | The number of instances to draw. |
Returns
Nothing
Arguments
Name | Type | Default | Description |
model | Model | The model to draw. | |
x | number | 0 | The x coordinate to draw the model at. |
y | number | 0 | The y coordinate to draw the model at. |
z | number | 0 | The z coordinate to draw the model at. |
scale | number | 1 | The scale of the model. |
angle | number | 0 | The rotation of the model around its rotation axis, in radians. |
ax | number | 0 | The x component of the axis of rotation. |
ay | number | 1 | The y component of the axis of rotation. |
az | number | 0 | The z component of the axis of rotation. |
nodename | string | nil | The name of the node to draw. If nil, the root node is drawn. |
children | boolean | true | Whether the children of the node should be drawn. |
instances | number | 1 | The number of instances to draw. |
Returns
Nothing
Arguments
Name | Type | Default | Description |
model | Model | The model to draw. | |
position | Vec3 | The position to draw the model at. | |
scale | number | 1 | The scale of the model. |
orientation | Quat | The orientation of the model. | |
nodename | string | nil | The name of the node to draw. If nil, the root node is drawn. |
children | boolean | true | Whether the children of the node should be drawn. |
instances | number | 1 | The number of instances to draw. |
Returns
Nothing
Arguments
Name | Type | Default | Description |
model | Model | The model to draw. | |
transform | Mat4 | The transform of the model. | |
nodename | string | nil | The name of the node to draw. If nil, the root node is drawn. |
children | boolean | true | Whether the children of the node should be drawn. |
instances | number | 1 | The number of instances to draw. |
Returns
Nothing
See also
Pass