Pass:box

Draw a box. This is like Pass:cube, except it takes 3 separate values for the scale.

Pass:box(transform, style)

Arguments

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

Returns

Nothing

See also