-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Solari fixes #21747
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
Solari fixes #21747
Conversation
| let props = unpack4x8unorm(gpixel.b); | ||
| let reflectance = vec3(props.r); | ||
| let metallic = props.g; | ||
| let metallic = saturate(props.g); // TODO: Not sure why saturate is needed here to prevent NaNs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be something wrong with our gbuffer encoding? @DGriffin91
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like any bit pattern of gpixel.b should be valid in respect to metallic. It seems sus if unpack4x8unorm is returning something that's not 0.0..=1.0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah idk
tychedelia
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and runs on my laptop. Subjectively seems good with the exception that when I turn off both light sources it takes an absurdly long time (5ish seconds) for the light to fade entirely, which seems wrong.
That's a known issue with our radiance caching, not related to this PR. It's very very hard to get something that's both stable and reacts quickly to lighting changes. #21810 should improve things though. |
* Fix overflow/nans in BRDF evaluation * Reduce jacobian rejection threshold to prevent light leaks (more aggressive cutoff now)
Uh oh!
There was an error while loading. Please reload this page.