-
-
Notifications
You must be signed in to change notification settings - Fork 35.5k
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
TAARenderPass: Pass over-brightens scene, shows occasional black frames #24318
Comments
@Mugen87 I believe that #26179 has considerably improved the situation, but I'm still seeing shifts in the background color with the use of TAARenderPass. The problem is subtle when TAA sample level is 0, and very obvious with higher sample levels. The example included with #24271 remains very illustrative. Currently the effect stack here is RenderPass → TAARenderPass → OutputPass. If we put TAARenderPass last, the color management is clearly wrong, but I'm not sure if that's allowed usage. |
Thanks for the heads-up. I'll check the implementation again tomorrow 👍 . |
@Mugen87 looking great now, thanks! |
Describe the bug
When using TAARenderPass, certain valid settings result in incorrect behavior:
scene.background
— any non-black background will cause the final scene to over-brighten during TAA accumulationpass.sampleLevel
— any non-zero level will cause a single-frame flash of black when the accumulation phase beginsTo Reproduce
Steps to reproduce the behavior:
webgl_postprocessing_taa
locallyscene.background = new THREE.Color( 0xEE5555 );
Observe (1) the scene brightens when it stops moving and begins accumulating, and (2) the scene flashes to black for a single frame at that time. It may be easier to see the flash when the background is kept black.
Expected behavior
TAARenderPass should be compatible with non-black scene backgrounds, and should not show a black frame while accumulating.
Screenshots
If applicable, add screenshots to help explain your problem (drag and drop the image).
Platform:
The text was updated successfully, but these errors were encountered: