-
Notifications
You must be signed in to change notification settings - Fork 792
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hdrp StackLit Advanced Specular Occlusion Config, Iridescence control…
…, BentNormal fixup, CoatMask, Bugfixes (#3629) * StackLit: Specular Occlusion: Enable full configuration of both screen space AO-based specular occlusion and data based (from AO input and bent normal) specular occlusion. * StackLit: Add a tentative method to fix noisy parts of bent normal maps. Remove the main SO toggle in StackLit from the master node UI. * StackLit: Tests: Update basic test shadergraphs (used by 1401_StackLitSG) along with the ones used by 1402 originally with SO disabled to use the same default specular occlusion configuration as Lit (empirical direct from AO formula for both SS and baked data), update resulting affected test, and resave all StackLit shadergraphs since SO has more settings now (config isn't changed for the rest of those shadergraphs). Also update the SSS shadergraph to match the changes to diffusion profiles. * StackLit: Test data and shader graph to experiment with bent normal fixup for SO. * HDRP: BSDF: EvalIridescence: Fix an edge case where black artifacts could happen because of NaNs due to TIR and hidden possible numerical discrepancy between emitted code and apparent logic of source. * StackLit: ComputeAdding core bottom variance calculations. Fix a double normalization error in the equations and modify the anisotropy correction function accordingly. Also add code to prevent some grazing angle acne. * StackLit: Change reflection probe baking for specular tint: Factor out code to generate a specular tint for diverse code paths (eg specular occlusion) and use it to replace direct usage of bsdfData.fresnel0 when baking reflection probes. * StackLit: Implement a coatmask feature. Also implement two iridescence fixup and control ports to ease interaction and usage with coat: FixupTIR, which was done before using another formula, but which is now improved and exposed: it automatically adjust the real topIOR used with EvalIridescence so that the whole angular range is filled up to - but not showing - TIR, regardless of iridescenceThickness, coatIOR and coatRoughness which all affect average refracted lobe direction stats and thus potential TIR conditions . FixupTIRClamp permits to fix the critical angle limit of iridescence even while iridescenceThickness is lowered, so that the changes in the angular color oscillations periods will "unroll" or stretch over a fixed angular range instead of going out of view past the grazing limit. This is for artistic control of the effect. * StackLit: Tests: Update all test scenes materials, add new content for coatmask feature, iridescence fixup. * StackLit: Specular Occlusion: Add option to specify visibility cone direction for SSAO-based SO when an advanced SO method is selected. * LightLoop shadowbias: fix a potential light leak on the sun light, as the wrong normal is used to check the bias sign (for Lit, this could only happen in forward). * HDRP_Tests - Touchup some StackLit scenes and materials and update reference screenshots. * removed unused meta + update package.json * Update EditorBuildSettings.asset * StackLit screenshots update
- Loading branch information
1 parent
ddbf1cd
commit dbfd46e
Showing
90 changed files
with
19,873 additions
and
720 deletions.
There are no files selected for viewing
8 changes: 1 addition & 7 deletions
8
...Assets/GraphicTests/Scenes/1x_Materials/1301_StackLit/StackLit_Dielectric_SSS.ShaderGraph
Large diffs are not rendered by default.
Oops, something went wrong.
30 changes: 15 additions & 15 deletions
30
...ts/Assets/GraphicTests/Scenes/1x_Materials/1301_StackLit/StackLit_Metal_Aniso.ShaderGraph
Large diffs are not rendered by default.
Oops, something went wrong.
28 changes: 14 additions & 14 deletions
28
...sts/Assets/GraphicTests/Scenes/1x_Materials/1301_StackLit/StackLit_Metal_Base.ShaderGraph
Large diffs are not rendered by default.
Oops, something went wrong.
40 changes: 20 additions & 20 deletions
40
...sts/Assets/GraphicTests/Scenes/1x_Materials/1301_StackLit/StackLit_Metal_Coat.ShaderGraph
Large diffs are not rendered by default.
Oops, something went wrong.
40 changes: 20 additions & 20 deletions
40
...GraphicTests/Scenes/1x_Materials/1301_StackLit/StackLit_Metal_Coat_DualNormal.ShaderGraph
Large diffs are not rendered by default.
Oops, something went wrong.
32 changes: 16 additions & 16 deletions
32
...sts/Assets/GraphicTests/Scenes/1x_Materials/1301_StackLit/StackLit_Metal_Irid.ShaderGraph
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.