Added a simple cube while taking advantage of Cubic's built-in three.js bootstrapping
Last active
December 10, 2015 17:48
-
-
Save anissen/4469829 to your computer and use it in GitHub Desktop.
Simple cube example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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