Browse Source

WebGLShadowMap: Fixed PointLight shadow breakage.

Mr.doob 8 năm trước cách đây
mục cha
commit
85b57674b6
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/renderers/webgl/WebGLShadowMap.js

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

@@ -432,7 +432,7 @@ function WebGLShadowMap( _renderer, _lights, _objects, capabilities ) {
 
 		for ( var i = 0, l = children.length; i < l; i ++ ) {
 
-			renderObject( children[ i ], camera, shadowCamera );
+			renderObject( children[ i ], camera, shadowCamera, isPointLight );
 
 		}