Browse Source

Remove cache from Array of Matrices uniforms

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

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

@@ -564,41 +564,26 @@ function setValueV4a( gl, v ) {
 
 function setValueM2a( gl, v ) {
 
-	var cache = this.cache;
 	var data = flatten( v, this.size, 4 );
 
-	if ( arraysEqual( cache, data ) ) return;
-
 	gl.uniformMatrix2fv( this.addr, false, data );
 
-	this.updateCache( data );
-
 }
 
 function setValueM3a( gl, v ) {
 
-	var cache = this.cache;
 	var data = flatten( v, this.size, 9 );
 
-	if ( arraysEqual( cache, data ) ) return;
-
 	gl.uniformMatrix3fv( this.addr, false, data );
 
-	this.updateCache( data );
-
 }
 
 function setValueM4a( gl, v ) {
 
-	var cache = this.cache;
 	var data = flatten( v, this.size, 16 );
 
-	if ( arraysEqual( cache, data ) ) return;
-
 	gl.uniformMatrix4fv( this.addr, false, data );
 
-	this.updateCache( data );
-
 }
 
 // Array of textures (2D / Cube)