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

NameTypeDefaultDescription
xnumberThe amount to scale on the x axis.
ynumberxThe amount to scale on the y axis.
znumberxThe amount to scale on the z axis.

Returns

Nothing

Notes

Order matters when scaling, translating, and rotating the coordinate system.

See also