|
@@ -55,13 +55,13 @@
|
|
|
|
|
|
var light = new THREE.SpotLight( 0xffffff, 1.5 );
|
|
|
light.position.set( 0, 500, 2000 );
|
|
|
- light.castShadow = true;
|
|
|
-
|
|
|
- light.shadow = new THREE.LightShadow( new THREE.PerspectiveCamera( 50, 1, 200, 10000 ) );
|
|
|
- light.shadow.bias = - 0.00022;
|
|
|
+ light.angle = Math.PI / 9;
|
|
|
|
|
|
- light.shadow.mapSize.width = 2048;
|
|
|
- light.shadow.mapSize.height = 2048;
|
|
|
+ light.castShadow = true;
|
|
|
+ light.shadow.camera.near = 1000;
|
|
|
+ light.shadow.camera.far = 4000;
|
|
|
+ light.shadow.mapSize.width = 1024;
|
|
|
+ light.shadow.mapSize.height = 1024;
|
|
|
|
|
|
scene.add( light );
|
|
|
|