Pass:draw
EditDraws a Model, Mesh, or Texture.
Arguments
| Name | Type | Default | Description |
| object | Model | Mesh | Texture | The object to draw. | |
| x | number | 0 | The x coordinate to draw the object at. |
| y | number | 0 | The y coordinate to draw the object at. |
| z | number | 0 | The z coordinate to draw the object at. |
| scale | number | 1 | The scale of the object. |
| angle | number | 0 | The rotation of the object 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. |
| instances | number | 1 | The number of instances to draw. |
Returns
Nothing
Arguments
| Name | Type | Default | Description |
| object | Model | Mesh | Texture | The object to draw. | |
| position | vector | The position to draw the object at. | |
| scale3 | vector | The scale of the object, as a vector. | |
| orientation | quaternion | The orientation of the object. | |
| instances | number | 1 | The number of instances to draw. |
Returns
Nothing
Arguments
| Name | Type | Default | Description |
| object | Model | Mesh | Texture | The object to draw. | |
| transform | Mat4 | The transform of the object. | |
| instances | number | 1 | The number of instances to draw. |
Returns
Nothing
Notes
Model:getMesh can be used to draw individual meshes of a model.
Textures ignore the instances parameter.
When drawing a Texture, the plane will be 1 meter wide at 1.0 scale and the height will be adjusted based on the Texture's aspect ratio.