Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Messed up colors when using OutputPass #27405

Closed
atul-livspace opened this issue Dec 20, 2023 · 1 comment
Closed

Messed up colors when using OutputPass #27405

atul-livspace opened this issue Dec 20, 2023 · 1 comment

Comments

@atul-livspace
Copy link

atul-livspace commented Dec 20, 2023

Description

When using output pass, the colors are not obeying the Color values set to the objects and the scene background.
Here's the rendered image for before and after implementing output pass.

Before:
Screenshot 2023-12-20 at 9 59 41 AM

After:
Screenshot 2023-12-20 at 9 59 23 AM

Notice how the color of the background and object changes from what it was originally set.

Reproduction steps

  1. create a scene setup
  2. add EffectComposer
  3. add passes: RenderPass and OutputPass
  4. compare the output by disabling and enabling the OutputPass

Code

composer = new EffectComposer( renderer );
const renderPass = new RenderPass( scene, camera );
composer.addPass( renderPass );

scene.background = new THREE.Color(1,1,1); // pure white 
const outputPass = new OutputPass();

// try commenting below block of code and see the color different.
composer.addPass( outputPass );

Live example

https://jsfiddle.net/zLne9hc5/

Screenshots

No response

Version

r159

Device

Desktop

Browser

Chrome

OS

MacOS

@atul-livspace atul-livspace changed the title Messup colors when using output pass Messed up colors when using output pass Dec 20, 2023
@atul-livspace atul-livspace changed the title Messed up colors when using output pass Messed up colors when using OutputPass Dec 20, 2023
@Mugen87
Copy link
Collaborator

Mugen87 commented Dec 20, 2023

Duplicate of #27184/#23019.

@Mugen87 Mugen87 closed this as not planned Won't fix, can't repro, duplicate, stale Dec 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants