Pass:plane

Edit

Draws a plane.




Arguments

NameTypeDefaultDescription
xnumber0 The x coordinate of the center of the plane.
ynumber0 The y coordinate of the center of the plane.
znumber0 The z coordinate of the center of the plane.
widthnumber1 The width of the plane.
heightnumber1 The height of the plane.
anglenumber0 The rotation of the plane 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 plane should be drawn filled or outlined.
columnsnumber1 The number of horizontal segments in the plane.
rowsnumbercolumns The number of vertical segments in the plane.

Returns

Nothing

Arguments

NameTypeDefaultDescription
positionVec3 The position of the plane.
sizeVec2 The size of the plane.
orientationQuat The orientation of the plane.
styleDrawStyle'fill' Whether the plane should be drawn filled or outlined.
columnsnumber1 The number of horizontal segments in the plane.
rowsnumbercolumns The number of vertical segments in the plane.

Returns

Nothing

Arguments

NameTypeDefaultDescription
transformMat4 The transform of the plane.
styleDrawStyle'fill' Whether the plane should be drawn filled or outlined.
columnsnumber1 The number of horizontal segments in the plane.
rowsnumbercolumns The number of vertical segments in the plane.

Returns

Nothing

See also