Skip to content

Hd/fix backplate globalcubemap #3090

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

Closed
wants to merge 21 commits into from

Conversation

JulienIgnace-Unity
Copy link
Contributor

Purpose of this PR

This PR removes rendering of backplates inside the cubemap generated for lightng in the HDRI sky.
The reason is that it did not make sense conceptually since the backplate needs a position and the cubemap is rendered at infinity. This caused artefacts in reflections coming from the sky cubemap.
This will fix https://fogbugz.unity3d.com/f/cases/1276692/


Testing status

Tested the repro scene provided in the case.
@Unity-Technologies/gfx-qa-hdrp it could be good to test a bit more thoroughly the backplate feature as I'm not 100% familiar with it so I might have missed some cases. Also please test local reflection probes. They should still contain the backplate.

JulienIgnace-Unity and others added 19 commits January 8, 2021 14:01
Co-authored-by: Sebastien Lagarde <sebastien@unity3d.com>
* Not checking NdotL since it's not really valid for area lights (We have multiple valid light directions, not one)

* Changelog

Co-authored-by: sebastienlagarde <sebastien@unity3d.com>
#3035)

Co-authored-by: sebastienlagarde <sebastien@unity3d.com>
* Fixed ShaderGraph decal draw order

* Updated changelog

Co-authored-by: sebastienlagarde <sebastien@unity3d.com>
* Fixed access to invalid Contexts references after exiting playmode.

* Fixed comparison gizmo after playmode.

* Fixes from PR feedback
… conserving specular color option for the specular input parametrization (similar to case 1257050) (#3060)
* adding a shadow mask test

* Update reference images
…ity) to improve visual quality. (#3020)

Co-authored-by: sebastienlagarde <sebastien@unity3d.com>
…er (case 1303504). (#3027)

Co-authored-by: sebastienlagarde <sebastien@unity3d.com>
…). (#3029)

* - Changed the warning message for ray traced area shadows (case 1303410).

* Adds approximation information about ray-traced area shadows

Co-authored-by: Lewis Jordan <lewis.jordan@hotmail.co.uk>
Co-authored-by: sebastienlagarde <sebastien@unity3d.com>
…ale rtao > 1.25 with a 25cm falloff interval. (#3023)

Co-authored-by: sebastienlagarde <sebastien@unity3d.com>
…ally work conceptually and caused artefacts.
@JulienIgnace-Unity JulienIgnace-Unity marked this pull request as ready for review January 13, 2021 14:34
@JulienIgnace-Unity JulienIgnace-Unity requested a review from a team January 13, 2021 14:34
Base automatically changed from hd/bugfix to master January 14, 2021 10:52
@JulienIgnace-Unity JulienIgnace-Unity changed the base branch from master to hd/bugfix January 14, 2021 11:05
Copy link
Contributor

@iM0ve iM0ve left a comment

Choose a reason for hiding this comment

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

No issues found, seems good to go.

Before PR:
After the reflection probe update/bake parts of the reflection would go black. Also, backplate from HDRI would be captured by global reflection probe.
wIdYrSXdoS

After PR:
No more black parts. The backplate reflection capture was removed from global reflection probe, now reflection of the backplate should be captured by placing a local probe in the scene.
1TqaZx6rSi

Whats tested:

  • Repro project to reproduce black artifacts
  • Capturing reflections of the backplate using local probes

@JulienIgnace-Unity
Copy link
Contributor Author

closed and reopened here: #3111

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

Successfully merging this pull request may close these issues.