Skip to content

Fix volumetric fog in planar reflections - #4736

Merged
sebastienlagarde merged 3 commits into
hd/bugfixfrom
HDRP/fix-volumetric-fog-in-planar
Jun 7, 2021
Merged

sebastienlagarde merged 3 commits into
hd/bugfixfrom
HDRP/fix-volumetric-fog-in-planar

Conversation

@FrancescoC-unity

Copy link
Copy Markdown
Contributor

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

The issue was due to the Depth Buffer optimization relying on good linear depth being avaialble, that was not the case with Planar reflections due to the oblique projection.

This PR fixes it as it calculates the linear depth the hard way.

What did I test: the repo scene, can see here

Before
image

After
image

@ghost ghost added the HDRP label Jun 1, 2021
@ghost
ghost requested review from a team and sebastienlagarde June 1, 2021 12:15
@ghost ghost self-assigned this Jun 1, 2021

ghost 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.

Seems like the repro in enough ✔️

@ghost
ghost marked this pull request as ready for review June 7, 2021 19:41
@ghost
ghost merged commit 97a953e into hd/bugfix Jun 7, 2021
@ghost
ghost deleted the HDRP/fix-volumetric-fog-in-planar branch June 7, 2021 22:14
@ghost ghost mentioned this pull request Jun 8, 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.

3 participants