From e43525e636bc9492d7ac37fe5796854eccb929db Mon Sep 17 00:00:00 2001 From: Vicente Lucendo Date: Wed, 21 Nov 2018 14:19:22 +0100 Subject: [PATCH] unnecessary variable redefinitions --- examples/js/postprocessing/UnrealBloomPass.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/js/postprocessing/UnrealBloomPass.js b/examples/js/postprocessing/UnrealBloomPass.js index b24e7225b7..d1e8c2b033 100644 --- a/examples/js/postprocessing/UnrealBloomPass.js +++ b/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 ++ ) { -- GitLab