Skip to content

Instantly share code, notes, and snippets.

@kaiquewdev
Created November 2, 2012 07:43
Show Gist options
  • Select an option

  • Save kaiquewdev/3999317 to your computer and use it in GitHub Desktop.

Select an option

Save kaiquewdev/3999317 to your computer and use it in GitHub Desktop.
var geometry = new THREE.CubeGeometry(1,1,1);
var material = new THREE.MeshBasicMaterial({color: 0x00ff00});
var cube = new THREE.Mesh(geometry, material);
scene.add(cube);
camera.position.z = 5;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment