Second pass in composer breaks sRGBEncoding (darkens objects)
See original GitHub issueIf you set renderer.outputEncoding = THREE.sRGBEncoding and you use an EffectComposer with more than one pass to render the scene colors appear as they would without sRGBEncoding.
Here is a fiddle demonstrating the problem. https://jsfiddle.net/cvumeLpx/2/
Comment out the second composer.addPass(renderPass);
and colors will render as expected.
The second pass can be anything https://jsfiddle.net/cvumeLpx.
Issue Analytics
- State:
- Created 4 years ago
- Comments:13 (2 by maintainers)
Top Results From Across the Web
Feature Request: sRGBPass for EffectComposer · Issue #18468
I'm in need of a post process pass that does the same thing as ... Second pass in composer breaks sRGBEncoding (darkens objects)...
Read more >three.js - EffectComposer second pass "overwrites" first pass
i want to render a texture on the background and the 3dscene in the foreground. i used the effectcomposer to do this. how...
Read more >Effect Composer Gamma Output Difference - three.js forum
So basically Im running into an issue where Im getting an inferior result using EffectComposer . Renderer + .outputEncoding = THREE.sRGBEncoding : (correct)....
Read more >Real-Time Rendering Fourth Edition
Each passes the result to the next person in line and immediately starts work on the next sandwich. If each person takes twenty...
Read more >postprocessing: Versions - Openbase
Changelog EffectComposer. Added setMainScene and setMainCamera methods to allow changing the main scene/camera for all registered passes. See #410 and #391.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You know… I think the actual issue here is the API. It’s “forcing” users to learn about color spaces when using post-processing.
That’s why I was considering something like https://github.com/mrdoob/three.js/pull/18322 so the renderer can take care of color spaces for the user.
@Mugen87 said
@Mugen87 Please refrain from making personal attacks.