Skip to content

Instantly share code, notes, and snippets.

@ybigus
Created September 11, 2013 14:51
Show Gist options
  • Save ybigus/6524739 to your computer and use it in GitHub Desktop.
Save ybigus/6524739 to your computer and use it in GitHub Desktop.
var cubeGeometry = new THREE.CubeGeometry(50,50,50);
var cubeMaterial = new THREE.MeshBasicMaterial({color: 0xff0000});
var cube = new THREE.Mesh(cubeGeometry, cubeMaterial);
scene.add(cube);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment