Browse Source

Removed another scene.add(camera)

Mr.doob 13 years ago
parent
commit
5d4b4c2af5
1 changed files with 1 additions and 4 deletions
  1. 1 4
      examples/webgl_geometry_extrude_splines.html

+ 1 - 4
examples/webgl_geometry_extrude_splines.html

@@ -196,8 +196,6 @@
 
 
 			container.appendChild(info);
 			container.appendChild(info);
 
 
-			scene = new THREE.Scene();
-
 			//
 			//
 
 
 			camera = new THREE.PerspectiveCamera(50, window.innerWidth / window.innerHeight, 0.01, 1000);
 			camera = new THREE.PerspectiveCamera(50, window.innerWidth / window.innerHeight, 0.01, 1000);
@@ -206,8 +204,7 @@
 
 
 			camera.position.set(0, 50, 500);
 			camera.position.set(0, 50, 500);
 
 
-			scene.add(camera);
-
+			scene = new THREE.Scene();
 
 
 			var light = new THREE.DirectionalLight(0xffffff);
 			var light = new THREE.DirectionalLight(0xffffff);
 			light.position.set(0, 0, 1);
 			light.position.set(0, 0, 1);