mirror of
https://github.com/visgl/luma.gl.git
synced 2026-01-25 14:08:58 +00:00
345 B
345 B
Cube
Create a white cube
var whiteCube = new Cube({
colors: [1, 1, 1, 1]
});
Creates a Cube model. Inherits methods from Model.
Use this to create a new Cube. Accepts the same properties and options as Model constructor but has preset for vertices, normals and indices.
var model = new Cube(options);