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

Use Interleaved gradient noise for shadow samples #45326

Merged
merged 1 commit into from
Feb 18, 2021

Conversation

clayjohn
Copy link
Member

Instead of using white noise for shadowmap lookup, rotate samples with interleaved gradient noise (IGN). IGN is described as being halfway between a dither pattern and noise. It is extremely fast to compute (about half the instructions of our previous noise), and most importantly has very little low frequency properties. This means that it looks more uniformly "random". White noise tends to have "clumping" artifacts making the noise more obvious.

I didn't go with this initially because I was afraid of the obvious dither pattern. But as I read more and use the engine more it is clear that white noise is just not as good.

Comparison image: Top is white noise, bottom is IGN
compare

@akien-mga akien-mga added this to the 4.0 milestone Jan 20, 2021
@akien-mga akien-mga requested a review from a team January 20, 2021 08:51
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.

3 participants