HTML5 Canvas WebGL Cube with Three.js

To create a WebGL cube with Three.js, we can instantiate a CubeGeometry object by defining its width along the x-axis, its height along the y-axis, and its depth along the z-axis.

Open in new window

Code Editor

Modified on April 12th, 2013 by Eric Rowell
comments powered by Disqus