소스 검색

Remove cache from Array of Vectors uniforms

Fernando Serrano 6 년 전
부모
커밋
9b7de2df47
1개의 변경된 파일0개의 추가작업 그리고 15개의 파일을 삭제
  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)