Pass:plane
EditDraws a plane.
Arguments
Name | Type | Default | Description |
x | number | 0 | The x coordinate of the center of the plane. |
y | number | 0 | The y coordinate of the center of the plane. |
z | number | 0 | The z coordinate of the center of the plane. |
width | number | 1 | The width of the plane. |
height | number | 1 | The height of the plane. |
angle | number | 0 | The rotation of the plane around its rotation axis, in radians. |
ax | number | 0 | The x component of the axis of rotation. |
ay | number | 1 | The y component of the axis of rotation. |
az | number | 0 | The z component of the axis of rotation. |
style | DrawStyle | 'fill' | Whether the plane should be drawn filled or outlined. |
columns | number | 1 | The number of horizontal segments in the plane. |
rows | number | columns | The number of vertical segments in the plane. |
Returns
Nothing
Arguments
Name | Type | Default | Description |
position | Vec3 | The position of the plane. | |
size | Vec2 | The size of the plane. | |
orientation | Quat | The orientation of the plane. | |
style | DrawStyle | 'fill' | Whether the plane should be drawn filled or outlined. |
columns | number | 1 | The number of horizontal segments in the plane. |
rows | number | columns | The number of vertical segments in the plane. |
Returns
Nothing
Arguments
Name | Type | Default | Description |
transform | Mat4 | The transform of the plane. | |
style | DrawStyle | 'fill' | Whether the plane should be drawn filled or outlined. |
columns | number | 1 | The number of horizontal segments in the plane. |
rows | number | columns | The number of vertical segments in the plane. |
Returns
Nothing