Mr.doob 9 ani în urmă
părinte
comite
5b18359349
1 a modificat fișierele cu 0 adăugiri și 7 ștergeri
  1. 0 7
      examples/webgl_lights_spotlight.html

+ 0 - 7
examples/webgl_lights_spotlight.html

@@ -91,11 +91,8 @@
 				spt.distance = 500;
 				spt.shadow.mapSize.width = 1024;
 				spt.shadow.mapSize.height = 1024;
-				// shadow camera helper
-				spt.shadowCameraHelper = new THREE.CameraHelper( spt.shadow.camera ); // colored lines
 				spt.shadow.camera.near = 0.1;
 				spt.shadow.camera.far = 20000;
-				//spt.shadow.camera.fov = (spt.angle * (360 / Math.PI));
 
 				lightHelper = new THREE.SpotLightHelper( spt );
 
@@ -114,7 +111,6 @@
 				scn.add(mshBox);
 				scn.add(amb);
 				scn.add(spt);
-				scn.add( spt.shadowCameraHelper );
 				scn.add( new THREE.AxisHelper( 10 ) );
 				scn.add( lightHelper );
 
@@ -123,7 +119,6 @@
 				window.addEventListener('resize', onResize, false);
 
 				orb.addEventListener('change', render);
-				//orb.maxPolarAngle = (Math.PI / 2);
 				orb.update();
 			}
 
@@ -136,8 +131,6 @@
 
 			function render() {
 				lightHelper.update(); // required
-				if ( spt.shadowCameraHelper ) spt.shadowCameraHelper.update();
-
 				rnd.render(scn, cam);
 			}