Fix for discrepancies in saturation and intensity between screen space refraction and probe refraction by FrancescoC-unity · Pull Request #4653 · Unity-Technologies/Graphics · GitHub
Skip to content

Fix for discrepancies in saturation and intensity between screen space refraction and probe refraction#4653

Merged
sebastienlagarde merged 5 commits into
hd/bugfixfrom
HDRP/fix-refraction-discrepancies
May 29, 2021
Merged

Fix for discrepancies in saturation and intensity between screen space refraction and probe refraction#4653
sebastienlagarde merged 5 commits into
hd/bugfixfrom
HDRP/fix-refraction-discrepancies

Conversation

@FrancescoC-unity

@FrancescoC-unity FrancescoC-unity commented May 26, 2021

Copy link
Copy Markdown
Contributor

Fix for https://fogbugz.unity3d.com/f/cases/1325298/

The probe version had an additional multiply by the transmittance, it was in https://github.com/Unity-Technologies/Graphics/pull/4653/files#diff-c0279e9ca5f2c9c431c0e83cefb9445734a2f0cbf08e2e3ad5208edb96ff70d9L2004 and https://github.com/Unity-Technologies/Graphics/pull/4653/files#diff-c0279e9ca5f2c9c431c0e83cefb9445734a2f0cbf08e2e3ad5208edb96ff70d9L2017 (removed)

This fixes the most glaring discrepancies. There are still some but are due to different source content and convolution methods to get the output for a given roughness.

Before:

refrDiscr_0.mp4

After:

refrDiscr_1.mp4

I think this will change a lot of screenshots, but given I understood yamato is not in a good state now I didn't re-run. We'd need to to not have red tests.

What did I test: repro and can see what I did in video.

@FrancescoC-unity FrancescoC-unity requested review from a team and sebastienlagarde May 26, 2021 12:25
@FrancescoC-unity FrancescoC-unity self-assigned this May 26, 2021

@iM0ve iM0ve left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the test showcase. Minor code change, looks good.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you check we don't have the same issue in stacklit (iirc stacklit support refraction?)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope, looks like it is not supported

@sebastienlagarde sebastienlagarde marked this pull request as ready for review May 29, 2021 11:13
@sebastienlagarde sebastienlagarde merged commit 0032b9c into hd/bugfix May 29, 2021
@sebastienlagarde sebastienlagarde deleted the HDRP/fix-refraction-discrepancies branch May 29, 2021 22:27
This was referenced Jun 7, 2021
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.

4 participants