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

Weight glow samples to reduce fireflies #54409

Merged
merged 1 commit into from
Jan 4, 2022

Conversation

clayjohn
Copy link
Member

@clayjohn clayjohn commented Oct 30, 2021

Fixes: #52066

This is a rather simple idea. Tonemap the raw image data before blurring to reduce the impact of fireflies, then reverse the tonemap to restore the range. Described by Brian Karis here: https://graphicrants.blogspot.com/2013/12/tone-mapping.html discovered while looking at some ideas presented here: http://www.iryoku.com/next-generation-post-processing-in-call-of-duty-advanced-warfare

The same basic idea could be backported to 3.x, but in 3.x it won't be as efficient or elegant because it will have to be applied to every sample as it is sampled.

@clayjohn clayjohn added this to the 4.0 milestone Oct 30, 2021
@clayjohn clayjohn requested a review from a team as a code owner October 30, 2021 04:44
@akien-mga akien-mga merged commit 34de6d1 into godotengine:master Jan 4, 2022
@akien-mga
Copy link
Member

Thanks!

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

Successfully merging this pull request may close these issues.

Vulkan: Sparkles and Glow jittering when camera moves due to specular aliasing
3 participants