浏览代码

Merge branch 'dev' of https://github.com/gero3/three.js into dev

Mr.doob 12 年之前
父节点
当前提交
ef0fe3fb60
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/renderers/WebGLRenderer.js

+ 1 - 1
src/renderers/WebGLRenderer.js

@@ -6517,7 +6517,7 @@ THREE.WebGLRenderer = function ( parameters ) {
 
 			var light = lights[ l ];
 
-			if ( light.onlyShadow ) continue;
+			if ( light.onlyShadow || light.visible === false ) continue;
 
 			if ( light instanceof THREE.DirectionalLight ) dirLights ++;
 			if ( light instanceof THREE.PointLight ) pointLights ++;