mirror of
https://github.com/visgl/luma.gl.git
synced 2025-12-08 17:36:19 +00:00
608 B
608 B
Cube
A scenegraph model node with a CubeGeometry.
Usage
Create a Cube:
import {Cube} from '@luma.gl/core';
const cube = new Cube(gl);
Inheritance
Cube extends ModelNode extends ScenegraphNode
Methods
constructor(gl : WebGLRenderingContext, props : Object)
Creates a new Cube.
Accepts the same properties and options as ModelNode constructor but has preset for vertices, normals and indices.