提交 5da3be94 编写于 作者: M Mr.doob

WebGLPrograms: Clean up.

上级 3861491b
......@@ -77,8 +77,6 @@ THREE.WebGLPrograms = function ( renderer, capabilities ) {
var light = lights[ l ];
if ( light.visible === false ) continue;
if ( light instanceof THREE.DirectionalLight ) dirLights ++;
if ( light instanceof THREE.PointLight ) pointLights ++;
if ( light instanceof THREE.SpotLight ) spotLights ++;
......@@ -99,7 +97,7 @@ THREE.WebGLPrograms = function ( renderer, capabilities ) {
var light = lights[ l ];
if ( ! light.castShadow ) continue;
if ( light.castShadow === false ) continue;
if ( light instanceof THREE.SpotLight || light instanceof THREE.DirectionalLight ) maxShadows ++;
if ( light instanceof THREE.PointLight ) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册