Browse Source

Fix: wrong face cull for shadows of freshly inserted mirrored objects.

Ondřej Španěl 6 years ago
parent
commit
1968a0d745
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/renderers/webgl/WebGLShadowMap.js

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

@@ -383,6 +383,7 @@ function WebGLShadowMap( _renderer, _objects, maxTextureSize ) {
 			if ( object.castShadow && ( ! object.frustumCulled || _frustum.intersectsObject( object ) ) ) {
 
 				object.modelViewMatrix.multiplyMatrices( shadowCamera.matrixWorldInverse, object.matrixWorld );
+				object.normalMatrix.getNormalMatrix( object.modelViewMatrix );
 
 				var geometry = _objects.update( object );
 				var material = object.material;