Browse Source

Remove cache from Array of Vectors uniforms

Fernando Serrano 6 years ago
parent
commit
9b7de2df47
1 changed files with 0 additions and 15 deletions
  1. 0 15
      src/renderers/webgl/WebGLUniforms.js

+ 0 - 15
src/renderers/webgl/WebGLUniforms.js

@@ -523,41 +523,26 @@ function setValue1iv( gl, v ) {
 
 function setValueV2a( gl, v ) {
 
-	var cache = this.cache;
 	var data = flatten( v, this.size, 2 );
 
-	if ( arraysEqual( cache, data ) ) return;
-
 	gl.uniform2fv( this.addr, data );
 
-	this.updateCache( data );
-
 }
 
 function setValueV3a( gl, v ) {
 
-	var cache = this.cache;
 	var data = flatten( v, this.size, 3 );
 
-	if ( arraysEqual( cache, data ) ) return;
-
 	gl.uniform3fv( this.addr, data );
 
-	this.updateCache( data );
-
 }
 
 function setValueV4a( gl, v ) {
 
-	var cache = this.cache;
 	var data = flatten( v, this.size, 4 );
 
-	if ( arraysEqual( cache, data ) ) return;
-
 	gl.uniform4fv( this.addr, data );
 
-	this.updateCache( data );
-
 }
 
 // Array of matrices (flat or from THREE clases)