Browse Source

WebGLRenderer: Include shadowsLength in lights.hash.

Mr.doob 9 years ago
parent
commit
daa0ed6ebe
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/renderers/WebGLRenderer.js

+ 1 - 1
src/renderers/WebGLRenderer.js

@@ -2790,7 +2790,7 @@ THREE.WebGLRenderer = function ( parameters ) {
 
 		_lights.shadows.length = shadowsLength;
 
-		_lights.hash = directionalLength + ',' + pointLength + ',' + spotLength + ',' + hemiLength;
+		_lights.hash = directionalLength + ',' + pointLength + ',' + spotLength + ',' + hemiLength + ',' + shadowsLength;
 
 	}