|
@@ -165,20 +165,23 @@
|
|
|
directionalLight.position.set( 0, -1, 1 ).normalize();
|
|
|
scene.add( directionalLight );
|
|
|
|
|
|
- spot1 = new THREE.SpotLight( 0xffffff, 1 );
|
|
|
+ spot1 = new THREE.SpotLight( 0xffffff, 1, 0, Math.PI / 4, 0.75 );
|
|
|
spot1.position.set( -100, 200, 100 );
|
|
|
spot1.target.position.set( 0, 0, 0 );
|
|
|
|
|
|
if (sceneInfo.shadows) {
|
|
|
|
|
|
- spot1.shadowCameraNear = 1;
|
|
|
- spot1.shadowCameraFar = 1024;
|
|
|
- spot1.castShadow = true;
|
|
|
- spot1.shadowBias = 0.0001;
|
|
|
- spot1.shadowMapWidth = 2048;
|
|
|
- spot1.shadowMapHeight = 2048;
|
|
|
+ spot1.shadowCameraNear = 1;
|
|
|
+ spot1.shadowCameraFar = 1024;
|
|
|
+ spot1.castShadow = true;
|
|
|
+ spot1.shadowBias = 0.0001;
|
|
|
+ spot1.shadowMapWidth = 2048;
|
|
|
+ spot1.shadowMapHeight = 2048;
|
|
|
+
|
|
|
}
|
|
|
+
|
|
|
scene.add( spot1 );
|
|
|
+
|
|
|
}
|
|
|
|
|
|
// RENDERER
|