Explorar o código

unnecessary set cache in PhongNode

SUNAG %!s(int64=10) %!d(string=hai) anos
pai
achega
8fd00bdc39
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      examples/js/nodes/materials/PhongNode.js

+ 1 - 1
examples/js/nodes/materials/PhongNode.js

@@ -131,7 +131,7 @@ THREE.PhongNode.prototype.build = function( builder ) {
 		var normal = this.normal ? this.normal.buildCode( builder, 'v3' ) : undefined;
 		var normal = this.normal ? this.normal.buildCode( builder, 'v3' ) : undefined;
 		var normalScale = this.normalScale && this.normal ? this.normalScale.buildCode( builder, 'fv1' ) : undefined;
 		var normalScale = this.normalScale && this.normal ? this.normalScale.buildCode( builder, 'fv1' ) : undefined;
 
 
-		var environment = this.environment ? this.environment.buildCode( builder.setCache( 'env' ), 'c' ) : undefined;
+		var environment = this.environment ? this.environment.buildCode( builder, 'c' ) : undefined;
 		var reflectivity = this.reflectivity && this.environment ? this.reflectivity.buildCode( builder, 'fv1' ) : undefined;
 		var reflectivity = this.reflectivity && this.environment ? this.reflectivity.buildCode( builder, 'fv1' ) : undefined;
 
 
 		material.requestAttrib.transparent = alpha != undefined;
 		material.requestAttrib.transparent = alpha != undefined;

粤ICP备19079148号