Browse Source

Update WebGLLights

Mugen87 7 years ago
parent
commit
56507057ca
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/renderers/webgl/WebGLLights.js

+ 2 - 2
src/renderers/webgl/WebGLLights.js

@@ -100,7 +100,7 @@ function UniformsCache() {
 
 }
 
-function WebGLLights( contextId ) {
+function WebGLLights( stateId ) {
 
 	var cache = new UniformsCache();
 
@@ -313,7 +313,7 @@ function WebGLLights( contextId ) {
 		state.hemi.length = hemiLength;
 
 		// TODO (sam-g-steel) why aren't we using join
-		state.hash = directionalLength + ',' + pointLength + ',' + spotLength + ',' + rectAreaLength + ',' + hemiLength + ',' + shadows.length + ',' + contextId;
+		state.hash = directionalLength + ',' + pointLength + ',' + spotLength + ',' + rectAreaLength + ',' + hemiLength + ',' + shadows.length + ',' + stateId;
 
 	}