@novorender/web_app / createSphereObject
Function: createSphereObject()
function createSphereObject(detail, material?): RenderStateDynamicObject
Experimental
Create a simple sphere mesh object.
Parameters
Parameter | Type | Default value | Description |
---|---|---|---|
detail | number | 5 | The level of tesselation, expressed as # subdivisions of the base icosahedron. |
material ? | RenderStateDynamicMaterial | undefined | The material to use, or undefined for default material. |
Returns
Example
const sphere = createSphereObject();
view.modifyRenderState({ dynamic: { objects: [sphere] } });