Pass:cube

Draws a cube.

Pass:cube(transform, style)

Arguments

NameTypeDefaultDescription
transformMat4 The transform of the cube. Can also be provided as position, 1-component scale, and rotation using a mix of Vectors or numbers.
styleDrawStyle'fill' Whether the cube should be drawn filled or outlined.

Returns

Nothing

Notes

The local origin is in the center of the cube.

See also