Shaojing Li 6a9c2e2445 Update links for the docs (#284)
* Update links for the docs
2017-07-26 19:58:23 -07:00

502 B

Cube

Create a white cube model. Inherits methods from Model

Usage

var whiteCube = new Cube(gl, {
      colors: [1, 1, 1, 1]
    });

Method

constructor

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(gl, options);