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

WebGLRenderer: Fixed setupLights()

上级 81edb3a8
......@@ -2564,16 +2564,14 @@ THREE.WebGLRenderer = function ( parameters ) {
viewMatrix = camera.matrixWorldInverse,
directionalCurrent = _lights.directional.length;
directionalLength = 0,
directionalCurrent = _lights.directional.length,
pointCurrent = _lights.point.length,
spotCurrent = _lights.spot.length,
hemiCurrent = _lights.hemi.length,
pointCurrent = _lights.point.length;
directionalLength = 0,
pointLength = 0,
spotCurrent = _lights.spot.length;
spotLength = 0,
hemiCurrent = _lights.hemi.length;
hemiLength = 0;
for ( l = 0, ll = lights.length; l < ll; l ++ ) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册