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

Fix blending equation in SSAARenderPass #25089

Merged
merged 1 commit into from
Dec 7, 2022
Merged

Conversation

skillbert
Copy link
Contributor

Description

SSAARenderPass currently uses the wrong blending equation to average out several subrenders, this results in opaque objects having less than 1 alpha. This can be seen by adding a red css background to the canvas in the example (https://threejs.org/examples/webgl_postprocessing_ssaa.html).

This PR changes the blending equation to correctly sum the alpha channel instead of repeatedly mixing it.

image

@mrdoob mrdoob added this to the r148 milestone Dec 7, 2022
@mrdoob mrdoob merged commit 63d29bc into mrdoob:dev Dec 7, 2022
@mrdoob
Copy link
Owner

mrdoob commented Dec 7, 2022

/fyi @bhouston

@skillbert skillbert deleted the ssaa-alpha-fix branch December 9, 2022 23:08
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.

2 participants