[HDRP][Backport 21.2] Backport various PRs by sebastienlagarde · Pull Request #6231 · Unity-Technologies/Graphics · GitHub
Skip to content

[HDRP][Backport 21.2] Backport various PRs#6231

Merged
sebastienlagarde merged 34 commits into
2021.2/stagingfrom
HDRP/various-backport-212
Nov 7, 2021
Merged

[HDRP][Backport 21.2] Backport various PRs#6231
sebastienlagarde merged 34 commits into
2021.2/stagingfrom
HDRP/various-backport-212

Conversation

@sebastienlagarde

@sebastienlagarde sebastienlagarde commented Nov 7, 2021

Copy link
Copy Markdown
Contributor

Purpose of this PR


Testing status

Describe what manual/automated tests were performed for this PR


Comments to reviewers

Notes for the reviewers you have assigned.

kecho and others added 17 commits November 7, 2021 17:54
When using particular types of upscaling, (CAS, FSR, Catmull) the
film grain quality produced by HDRP was lower than expected.

This was caused by errors in the UV scale calculations for the grain
texture.

This change fixes the issue by modifying the scale calculations to
use the final viewport size rather than the size of the current
scaled/unscaled viewport. This works because film grain is always
handled by "FinalPass" which always renders at final viewport size
anyways.

This change also fixes a few cases where the current resolution group
would have been incorrect when CAS or FSR were being used as the
upscaling method.
Co-authored-by: Sean Puller <sean.puller@unity3d.com>
* Initial commit MRP implementation

* Barn door application

* Add dominant marschner lobe direction skeleton

* Finalize rect light MRP for marschner, handle forward + backward hemisphere scattering.

* Force pathtracer to far-field in case users use geometry with bad normals.

* com.unity.render-pipelines.high-definition/Runtime/Material/Hair/MultipleScattering/HairMultipleScattering.hlsl

* Fix SH ringing for multiple scattering

* Add trivial support for cookies

* Add Kajiya support for area light approximation (non-LTC)

* remove Line area light MRP for now

* Remove area rect reference

* Update area light hair test scene and reference images

* Select cookie mip based on solid angle, rename some functions, temporarily add back rect ref

* Remove the useless div-by-1 and add a comment to explain the removal of the divide by PI

* Add a comment to further explain the normalization we do on the longitudinal distribution

* Remove the ref once again

* Update test images for metal and vulkan

* Add a zero-div guard to silence compiler warning
@github-actions

github-actions Bot commented Nov 7, 2021

Copy link
Copy Markdown

@sebastienlagarde sebastienlagarde marked this pull request as ready for review November 7, 2021 22:27
@sebastienlagarde sebastienlagarde merged commit a9d7146 into 2021.2/staging Nov 7, 2021
@sebastienlagarde sebastienlagarde deleted the HDRP/various-backport-212 branch November 7, 2021 22:27
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.