浏览代码

WebGLShadowMap: Removed, I think, unneeded state resets.

Mr.doob 9 年之前
父节点
当前提交
4959aaff04
共有 1 个文件被更改,包括 0 次插入6 次删除
  1. 0 6
      src/renderers/webgl/WebGLShadowMap.js

+ 0 - 6
src/renderers/webgl/WebGLShadowMap.js

@@ -278,10 +278,6 @@ THREE.WebGLShadowMap = function ( _renderer, _lights, _objects ) {
 
 
 			}
 			}
 
 
-			// We must call _renderer.resetGLState() at the end of each iteration of
-			// the light loop in order to force material updates for each light.
-			_renderer.resetGLState();
-
 		}
 		}
 
 
 		// Restore GL state.
 		// Restore GL state.
@@ -297,8 +293,6 @@ THREE.WebGLShadowMap = function ( _renderer, _lights, _objects ) {
 
 
 		}
 		}
 
 
-		_renderer.resetGLState();
-
 		scope.needsUpdate = false;
 		scope.needsUpdate = false;
 
 
 	};
 	};