Skip to content

Instantly share code, notes, and snippets.

@anissen
Last active December 10, 2015 17:48
Show Gist options
  • Save anissen/4469829 to your computer and use it in GitHub Desktop.
Save anissen/4469829 to your computer and use it in GitHub Desktop.
Simple cube example

Example cube

Added a simple cube while taking advantage of Cubic's built-in three.js bootstrapping

var cube = new THREE.Mesh(
new THREE.CubeGeometry(50, 50, 50),
new THREE.MeshLambertMaterial({ color: 0xFF0000 })
);
scene.add(cube);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment