Skip to content

Commit ddff0f6

Browse files
committed
Add comments to FF RGB format fix
1 parent 9f6ea4f commit ddff0f6

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

examples/js/SimulationRenderer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ function SimulationRenderer( WIDTH, renderer ) {
226226

227227
}
228228

229-
var texture = new THREE.DataTexture( a, WIDTH, WIDTH, THREE.RGBAFormat, THREE.FloatType );
229+
var texture = new THREE.DataTexture( a, WIDTH, WIDTH, THREE.RGBAFormat, THREE.FloatType ); // was RGB format. changed to RGBA format. see discussion in #8415 / #8450
230230
texture.needsUpdate = true;
231231

232232
return texture;

examples/js/postprocessing/AdaptiveToneMappingPass.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,8 @@ THREE.AdaptiveToneMappingPass.prototype = {
186186
this.previousLuminanceRT.dispose();
187187

188188
}
189-
var pars = { minFilter: THREE.LinearFilter, magFilter: THREE.LinearFilter, format: THREE.RGBAFormat };
189+
190+
var pars = { minFilter: THREE.LinearFilter, magFilter: THREE.LinearFilter, format: THREE.RGBAFormat }; // was RGB format. changed to RGBA format. see discussion in #8415 / #8450
190191

191192
this.luminanceRT = new THREE.WebGLRenderTarget( this.resolution, this.resolution, pars );
192193
this.luminanceRT.texture.generateMipmaps = false;

0 commit comments

Comments
 (0)