|
@@ -20,11 +20,11 @@ SpotLightShadow.prototype = Object.assign( Object.create( LightShadow.prototype
|
|
|
|
|
|
update: function ( light ) {
|
|
|
|
|
|
+ var camera = this.camera;
|
|
|
+
|
|
|
var fov = _Math.RAD2DEG * 2 * light.angle;
|
|
|
var aspect = this.mapSize.width / this.mapSize.height;
|
|
|
- var far = light.distance || 500;
|
|
|
-
|
|
|
- var camera = this.camera;
|
|
|
+ var far = light.distance || camera.far;
|
|
|
|
|
|
if ( fov !== camera.fov || aspect !== camera.aspect || far !== camera.far ) {
|
|
|
|