|
@@ -97,8 +97,6 @@ function WebGLShadowMap( _renderer, _objects, maxTextureSize ) {
|
|
|
const light = lights[ i ];
|
|
|
const shadow = light.shadow;
|
|
|
|
|
|
- if ( shadow.autoUpdate === false && shadow.needsUpdate === false ) continue;
|
|
|
-
|
|
|
if ( shadow === undefined ) {
|
|
|
|
|
|
console.warn( 'THREE.WebGLShadowMap:', light, 'has no shadow.' );
|
|
@@ -106,6 +104,8 @@ function WebGLShadowMap( _renderer, _objects, maxTextureSize ) {
|
|
|
|
|
|
}
|
|
|
|
|
|
+ if ( shadow.autoUpdate === false && shadow.needsUpdate === false ) continue;
|
|
|
+
|
|
|
_shadowMapSize.copy( shadow.mapSize );
|
|
|
|
|
|
const shadowFrameExtents = shadow.getFrameExtents();
|