Sphere
Sphere
is a primitive object that creates a sphere.
Syntax
<Sphere />
Parameters
All objects share the same base parameters from ComponentObjectProps
.
Name | Type | Description |
---|---|---|
radius | number | The radius of the sphere. |
widthSegments | number | The number of segments along the width of the sphere. |
heightSegments | number | The number of segments along the height of the sphere. |
bloom | boolean | Whether use bloom effect. |
color | ColorType | The base color. |
material | ObjectMaterialMix | The material. |
Example
<Sphere radius={1} position={[0, 2, 0]} />
Available on: Client Server