Преглед изворни кода

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

Ondřej Španěl пре 7 година
родитељ
комит
1968a0d745
1 измењених фајлова са 1 додато и 0 уклоњено
  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 ) ) ) {
 			if ( object.castShadow && ( ! object.frustumCulled || _frustum.intersectsObject( object ) ) ) {
 
 
 				object.modelViewMatrix.multiplyMatrices( shadowCamera.matrixWorldInverse, object.matrixWorld );
 				object.modelViewMatrix.multiplyMatrices( shadowCamera.matrixWorldInverse, object.matrixWorld );
+				object.normalMatrix.getNormalMatrix( object.modelViewMatrix );
 
 
 				var geometry = _objects.update( object );
 				var geometry = _objects.update( object );
 				var material = object.material;
 				var material = object.material;

粤ICP备19079148号