Explorar el Código

unnecessary variable redefinitions

Vicente Lucendo hace 6 años
padre
commit
e43525e636
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. 3 3
      examples/js/postprocessing/UnrealBloomPass.js

+ 3 - 3
examples/js/postprocessing/UnrealBloomPass.js

@@ -37,7 +37,7 @@ THREE.UnrealBloomPass = function ( resolution, strength, radius, threshold ) {
 
 		this.renderTargetsHorizontal.push( renderTarget );
 
-		var renderTarget = new THREE.WebGLRenderTarget( resx, resy, pars );
+		renderTarget = new THREE.WebGLRenderTarget( resx, resy, pars );
 
 		renderTarget.texture.name = "UnrealBloomPass.v" + i;
 		renderTarget.texture.generateMipmaps = false;
@@ -71,8 +71,8 @@ THREE.UnrealBloomPass = function ( resolution, strength, radius, threshold ) {
 	// Gaussian Blur Materials
 	this.separableBlurMaterials = [];
 	var kernelSizeArray = [ 3, 5, 7, 9, 11 ];
-	var resx = Math.round( this.resolution.x / 2 );
-	var resy = Math.round( this.resolution.y / 2 );
+	resx = Math.round( this.resolution.x / 2 );
+	resy = Math.round( this.resolution.y / 2 );
 
 	for ( var i = 0; i < this.nMips; i ++ ) {