2017-07-03 09:29:59 -07:00

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);