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

Examples: Fix opacity in copy and blend shaders. #23671

Merged
merged 1 commit into from
Mar 7, 2022
Merged

Conversation

Mugen87
Copy link
Collaborator

@Mugen87 Mugen87 commented Mar 7, 2022

Fixed #19531.

Description

I've noticed that the blending of the texture pass in webgl_postprocessing_backgrounds produces a too dark result. The root cause is the way how opacity is implemented in CopyShader. Instead of using premultiplied alpha, the code uses straight alpha now for simplicity.

@mrdoob mrdoob added this to the r139 milestone Mar 7, 2022
@mrdoob mrdoob merged commit 8904a38 into mrdoob:dev Mar 7, 2022
@mrdoob
Copy link
Owner

mrdoob commented Mar 7, 2022

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CopyShader opacity does not work as expected
2 participants