Pass:cube

Edit

Draws a cube.




Arguments

NameTypeDefaultDescription
xnumber0 The x coordinate of the center of the cube.
ynumber0 The y coordinate of the center of the cube.
znumber0 The z coordinate of the center of the cube.
sizenumber1 The size of the cube.
anglenumber0 The rotation of the cube around its rotation axis, in radians.
axnumber0 The x component of the axis of rotation.
aynumber1 The y component of the axis of rotation.
aznumber0 The z component of the axis of rotation.
styleDrawStyle'fill' Whether the cube should be drawn filled or outlined.

Returns

Nothing

Arguments

NameTypeDefaultDescription
positionVec3 The position of the cube.
sizenumber1 The size of the cube.
orientationQuat The orientation of the cube.
styleDrawStyle'fill' Whether the cube should be drawn filled or outlined.

Returns

Nothing

Arguments

NameTypeDefaultDescription
transformMat4 The transform of the cube.
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