Sfoglia il codice sorgente

WebGLRenderer: Include shadowsLength in lights.hash.

Mr.doob 10 anni fa
parent
commit
daa0ed6ebe
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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;
 
 	}