Browse Source

Fixed DirectionalLights shadow breakage.

Mr.doob 9 years ago
parent
commit
0f57208ca5
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/renderers/webgl/WebGLShadowMap.js

+ 2 - 0
src/renderers/webgl/WebGLShadowMap.js

@@ -171,6 +171,8 @@ THREE.WebGLShadowMap = function ( _renderer, _lights, _objects ) {
 
 
 				shadow.map = new THREE.WebGLRenderTarget( _shadowMapSize.x, _shadowMapSize.y, pars );
 				shadow.map = new THREE.WebGLRenderTarget( _shadowMapSize.x, _shadowMapSize.y, pars );
 
 
+				shadowCamera.updateProjectionMatrix();
+
 			}
 			}
 
 
 			if ( shadow instanceof THREE.SpotLightShadow ) {
 			if ( shadow instanceof THREE.SpotLightShadow ) {