Skip to content

Instantly share code, notes, and snippets.

/_.md

Created August 19, 2012 08:52
Show Gist options
  • Save anonymous/3393786 to your computer and use it in GitHub Desktop.
Save anonymous/3393786 to your computer and use it in GitHub Desktop.
just another inlet to tributary

No parent Inlet

{"editor_editor":{"coffee":false,"vim":false,"emacs":false,"width":509,"height":586,"hide":false}}
var materials = [];
for ( var i = 0; i < 6; i ++ ) {
materials.push( new THREE.MeshBasicMaterial( { color: Math.random() * 0xffffff } ) );
}
cube = new THREE.Mesh( new THREE.CubeGeometry( 200, 200, 200, 1, 1, 1, materials ), new THREE.MeshFaceMaterial() );
cube.position.y = -40;
cube.position.x = -252;
scene.add( cube );
// Plane
plane = new THREE.Mesh( new THREE.PlaneGeometry( 200, 200 ), new THREE.MeshBasicMaterial( { color: 0xe0e0e0 } ) );
plane.geometry.applyMatrix( new THREE.Matrix4().makeRotationX( - Math.PI / 2 ) );
scene.add( plane );
renderer.render( scene, camera );
renderer.setClearColorHex(0xEEEEEE, 1.0);
renderer.clear();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment