提交 7a9f1116 编写于 作者: M Mr.doob

WebGLRenderer: Simplified _lights.shadows. (Was trying to link them)

上级 4e9a2b88
......@@ -2130,7 +2130,7 @@ THREE.WebGLRenderer = function ( parameters ) {
for ( var i = 0, il = shadows.length; i < il; i ++ ) {
var light = shadows[ i ][ 0 ];
var light = shadows[ i ];
if ( light instanceof THREE.PointLight || light instanceof THREE.SpotLight || light instanceof THREE.DirectionalLight ) {
......@@ -2681,7 +2681,7 @@ THREE.WebGLRenderer = function ( parameters ) {
if ( light.castShadow ) {
_lights.shadows[ shadowsLength ++ ] = [ light, directionalLength ];
_lights.shadows[ shadowsLength ++ ] = light;
}
......@@ -2709,7 +2709,7 @@ THREE.WebGLRenderer = function ( parameters ) {
if ( light.castShadow ) {
_lights.shadows[ shadowsLength ++ ] = [ light, pointLength ];
_lights.shadows[ shadowsLength ++ ] = light;
_lights.shadowsPointLight ++;
}
......@@ -2748,7 +2748,7 @@ THREE.WebGLRenderer = function ( parameters ) {
if ( light.castShadow ) {
_lights.shadows[ shadowsLength ++ ] = [ light, pointLength ];
_lights.shadows[ shadowsLength ++ ] = light;
}
......
......@@ -118,7 +118,7 @@ THREE.WebGLShadowMap = function ( _renderer, _lights, _objects ) {
for ( var i = 0, il = shadows.length; i < il; i ++ ) {
var light = shadows[ i ][ 0 ];
var light = shadows[ i ];
var shadow = light.shadow;
var shadowCamera = shadow.camera;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册