Sfoglia il codice sorgente

Always rebuild uniform list of custom programs when .updateMaterial.

tschw 10 anni fa
parent
commit
5acfd5ab7d
1 ha cambiato i file con 0 aggiunte e 5 eliminazioni
  1. 0 5
      src/renderers/WebGLRenderer.js

+ 0 - 5
src/renderers/WebGLRenderer.js

@@ -1944,11 +1944,6 @@ THREE.WebGLRenderer = function ( parameters ) {
 			// same glsl and uniform list
 			return;
 
-		} else if ( materialProperties.__webglShader.uniforms === material.uniforms ) {
-
-			// same uniforms (container object)
-			return;
-
 		} else {
 
 			// only rebuild uniform list