Skip to content

Second pass in composer breaks sRGBEncoding (darkens objects) #18451

@viperphase1

Description

@viperphase1

If 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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions