Update algorithm for specular occlusion#5312
Conversation
|
Hi! This comment will help you figure out which jobs to run before merging your PR. The suggestions are dynamic based on what files you have changed. HDRP SRP Core Depending on the scope of your PR, you may need to run more jobs than what has been suggested. Please speak to your lead or a Graphics SDET (#devs-graphics-automation) if you are unsure. |
|
Note for reviever: Before merging we want to know what method make sense and then we will remove the other one. Also be sure it works with all our shader type. |
|
adding QA for awareness but already tested by artists 🙂 |
|
PR tested by the artsits. No need for futher QA. Merging |
Purpose of this PR
This PR is updating the algorithm for specular occlusion when using bent normals + AO.
This new version reduces specular occlusion sharpness for high smoothness materials, and reduces over darkenning of surfaces when looking at grazing angles.
Also changed default value for specular occlusion for new shader graphs. Previous was "Off", now it's "From AO" to match default value of the Lit shader
Comparison of the different options:

Before this PR is "From Bent Normals", new algorithm is "From Spherical Gaussians"
Both models have high smoothness in the gif below, all lighting is from HDRI Sky
Added a section in
Shader Codeof upgrade guide about function renaming.Added screenshot in
Whats newguideTesting status
https://confluence.unity3d.com/pages/viewpage.action?spaceKey=HDRP&title=Specular+Occlusion