Pass:sphere

Edit

Draws a sphere




Arguments

NameTypeDefaultDescription
xnumber0 The x coordinate of the center of the sphere.
ynumber0 The y coordinate of the center of the sphere.
znumber0 The z coordinate of the center of the sphere.
radiusnumber1 The radius of the sphere.
anglenumber0 The rotation of the sphere 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.
longitudesnumber48 The number of "horizontal" segments.
latitudesnumberlongitudes / 2 The number of "vertical" segments.

Returns

Nothing

Arguments

NameTypeDefaultDescription
positionVec3 The position of the sphere.
radiusnumber1 The radius of the sphere.
orientationQuat The orientation of the sphere.
longitudesnumber48 The number of "horizontal" segments.
latitudesnumberlongitudes / 2 The number of "vertical" segments.

Returns

Nothing

Arguments

NameTypeDefaultDescription
transformMat4 The transform of the sphere.
longitudesnumber48 The number of "horizontal" segments.
latitudesnumberlongitudes / 2 The number of "vertical" segments.

Returns

Nothing

Notes

The local origin of the sphere is in its center.

See also