lovr.graphics.scale
Scales the coordinate system in 3 dimensions. This will cause objects to appear bigger or smaller.
The scaling will last until lovr.draw
returns or the transformation is popped off the transformation stack.
lovr.graphics.scale(x, y, z)
Arguments
Name | Type | Default | Description |
x | number | 1.0 | The amount to scale on the x axis. |
y | number | x | The amount to scale on the y axis. |
z | number | x | The amount to scale on the z axis. |
Returns
Nothing
Notes
Order matters when scaling, translating, and rotating the coordinate system.
See also
lovr.graphics.rotate
lovr.graphics.translate
lovr.graphics.transform
lovr.graphics