mirror of
https://github.com/visgl/luma.gl.git
synced 2025-12-08 17:36:19 +00:00
617 B
617 B
Cube
Create a white cube model. Inherits methods from Model
Usage
import {Cube} from '@luma.gl/core';
const whiteCube = new Cube(gl, {
colors: [1, 1, 1, 1]
});
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.