diff --git a/examples/js/postprocessing/UnrealBloomPass.js b/examples/js/postprocessing/UnrealBloomPass.js index b24e7225b7f94f23197fdb604c6990fb7fd7207e..d1e8c2b0333440e48cd6f4383f745f9b72156775 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 ++ ) {