Explorar el Código

restore initial projection matrix update

supereggbrt hace 6 años
padre
commit
7ca274704c
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      src/renderers/webgl/WebGLShadowMap.js

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

@@ -140,6 +140,8 @@ function WebGLShadowMap( _renderer, _objects, maxTextureSize ) {
 				shadow.map = new WebGLRenderTarget( _shadowMapSize.x, _shadowMapSize.y, pars );
 				shadow.map.texture.name = light.name + ".shadowMap";
 
+				shadow.camera.updateProjectionMatrix();
+
 			}
 
 			_renderer.setRenderTarget( shadow.map );