Prechádzať zdrojové kódy

WebGLRenderer: Include shadowsLength in lights.hash.

Mr.doob 10 rokov pred
rodič
commit
daa0ed6ebe
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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;
 
 	}