@novorender/web_app / createCubeObject
Function: createCubeObject()
function createCubeObject(material?): RenderStateDynamicObject
Experimental
Create a simple cube mesh object.
Parameters
Parameter | Type | Description |
---|---|---|
material ? | RenderStateDynamicMaterial | The material to use, or undefined for default material. |
Returns
Example
const cube = createCubeObject();
view.modifyRenderState({ dynamic: { objects: [cube] } });