From b233807d618265b67f8ce308186e6267fe9f29aa Mon Sep 17 00:00:00 2001 From: Rene Nyffenegger Date: Fri, 27 Jun 2014 14:12:35 +0200 Subject: [PATCH 1/2] removed first of double assignement to spotLight.shadowCameraNear and spotLight.shadowCameraFar --- chapter-03/05-hemisphere-light.html | 2 -- chapter-03/07-lensflares.html | 2 -- 2 files changed, 4 deletions(-) diff --git a/chapter-03/05-hemisphere-light.html b/chapter-03/05-hemisphere-light.html index da527112..6255d54f 100644 --- a/chapter-03/05-hemisphere-light.html +++ b/chapter-03/05-hemisphere-light.html @@ -124,8 +124,6 @@ var spotLight = new THREE.DirectionalLight(pointColor); spotLight.position.set(30, 10, -50); spotLight.castShadow = true; - spotLight.shadowCameraNear = 0.1; - spotLight.shadowCameraFar = 100; spotLight.shadowCameraFov = 50; spotLight.target = plane; spotLight.distance = 0; diff --git a/chapter-03/07-lensflares.html b/chapter-03/07-lensflares.html index 408cfcd4..e3905aab 100644 --- a/chapter-03/07-lensflares.html +++ b/chapter-03/07-lensflares.html @@ -123,8 +123,6 @@ var spotLight = new THREE.DirectionalLight(pointColor); spotLight.position.set(30, 10, -50); spotLight.castShadow = true; - spotLight.shadowCameraNear = 0.1; - spotLight.shadowCameraFar = 100; spotLight.shadowCameraFov = 50; spotLight.target = plane; spotLight.distance = 0; From c4aa1de1dfe4b55319d829e731390c1ad06cb7ae Mon Sep 17 00:00:00 2001 From: Rene Nyffenegger Date: Fri, 27 Jun 2014 14:21:55 +0200 Subject: [PATCH 2/2] Removed double (redunant) comment --- chapter-03/02-point-light.html | 1 - 1 file changed, 1 deletion(-) diff --git a/chapter-03/02-point-light.html b/chapter-03/02-point-light.html index d2ddc05b..5caeaf2a 100644 --- a/chapter-03/02-point-light.html +++ b/chapter-03/02-point-light.html @@ -98,7 +98,6 @@ var ambientLight = new THREE.AmbientLight(ambiColor); scene.add(ambientLight); - // add spotlight for the shadows // add spotlight for the shadows var spotLight = new THREE.SpotLight(0xffffff); spotLight.position.set(-40, 60, -10);