|
@@ -30,11 +30,10 @@ This code creates a scene, then creates a camera, adds the camera and cube to th
|
|
|
|
|
|
function init() {
|
|
|
|
|
|
- scene = new THREE.Scene();
|
|
|
-
|
|
|
camera = new THREE.PerspectiveCamera( 75, window.innerWidth / window.innerHeight, 1, 10000 );
|
|
|
camera.position.z = 1000;
|
|
|
- scene.add( camera );
|
|
|
+
|
|
|
+ scene = new THREE.Scene();
|
|
|
|
|
|
geometry = new THREE.CubeGeometry( 200, 200, 200 );
|
|
|
material = new THREE.MeshBasicMaterial( { color: 0xff0000, wireframe: true } );
|