Skip to main content

Sphere

Sphere is a primitive object that creates a sphere.

Syntax

<Sphere />

Parameters

All objects share the same base parameters from ComponentObjectProps.

NameTypeDescription
radiusnumberThe radius of the sphere.
widthSegmentsnumberThe number of segments along the width of the sphere.
heightSegmentsnumberThe number of segments along the height of the sphere.
bloombooleanWhether use bloom effect.
colorColorTypeThe base color.
materialObjectMaterialMixThe material.

Example

<Sphere radius={1} position={[0, 2, 0]} />

Available on: Client Server