Pass:sphere

Draws a sphere

Pass:sphere(transform, longitudes, latitudes)

Arguments

NameTypeDefaultDescription
transformMat4 The transform of the sphere. Can also be provided as a position, radius, and rotation using a mix of `Vectors and numbers.'
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