From ddff0f642acbf650b53d1ddffe544900569ab983 Mon Sep 17 00:00:00 2001 From: Mugen87 Date: Fri, 25 Mar 2016 11:18:56 +0100 Subject: [PATCH] Add comments to FF RGB format fix --- examples/js/SimulationRenderer.js | 2 +- examples/js/postprocessing/AdaptiveToneMappingPass.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/js/SimulationRenderer.js b/examples/js/SimulationRenderer.js index 63f987a4db..06314530b7 100644 --- a/examples/js/SimulationRenderer.js +++ b/examples/js/SimulationRenderer.js @@ -226,7 +226,7 @@ function SimulationRenderer( WIDTH, renderer ) { } - var texture = new THREE.DataTexture( a, WIDTH, WIDTH, THREE.RGBAFormat, THREE.FloatType ); + var texture = new THREE.DataTexture( a, WIDTH, WIDTH, THREE.RGBAFormat, THREE.FloatType ); // was RGB format. changed to RGBA format. see discussion in #8415 / #8450 texture.needsUpdate = true; return texture; diff --git a/examples/js/postprocessing/AdaptiveToneMappingPass.js b/examples/js/postprocessing/AdaptiveToneMappingPass.js index afcea464ea..f9ab8bc795 100644 --- a/examples/js/postprocessing/AdaptiveToneMappingPass.js +++ b/examples/js/postprocessing/AdaptiveToneMappingPass.js @@ -186,7 +186,8 @@ THREE.AdaptiveToneMappingPass.prototype = { this.previousLuminanceRT.dispose(); } - var pars = { minFilter: THREE.LinearFilter, magFilter: THREE.LinearFilter, format: THREE.RGBAFormat }; + + var pars = { minFilter: THREE.LinearFilter, magFilter: THREE.LinearFilter, format: THREE.RGBAFormat }; // was RGB format. changed to RGBA format. see discussion in #8415 / #8450 this.luminanceRT = new THREE.WebGLRenderTarget( this.resolution, this.resolution, pars ); this.luminanceRT.texture.generateMipmaps = false; -- GitLab