summaryrefslogtreecommitdiffstats
path: root/MochieStandardBRDF.cginc
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2024-11-03 15:25:08 -0800
committeryum <yum.food.vr@gmail.com>2024-11-03 15:25:54 -0800
commitb7d3cb5d759feab1e44f4cdb01a0c8922bf4f1cb (patch)
treecc10c40ac2e632dd07a0ac0fe515048b354af7f9 /MochieStandardBRDF.cginc
parentcb55e813456480a036673d1d32608e10b10c8f87 (diff)
Misc
* Add third HSV slot * Add ZTest enum * Fix bug where SSR mask keyword can be set when SSR is disabled
Diffstat (limited to 'MochieStandardBRDF.cginc')
-rw-r--r--MochieStandardBRDF.cginc1
1 files changed, 1 insertions, 0 deletions
diff --git a/MochieStandardBRDF.cginc b/MochieStandardBRDF.cginc
index fbf6b66..867904a 100644
--- a/MochieStandardBRDF.cginc
+++ b/MochieStandardBRDF.cginc
@@ -138,6 +138,7 @@ half4 BRDF1_Mochie_PBS (
diffCol = diffColor * (gi.diffuse + light.color * lerp(diffuseTerm, wrappedDiffuse, thickness));
half3 specCol = specularTerm * light.color * FresnelTerm (specColor, lh) * _SpecularStrength;
+
half3 reflCol = surfaceReduction * gi.specular * FresnelLerp (specColor, grazingTerm, lerp(1, nv, _FresnelStrength*_UseFresnel)) * reflection_strength;
#if SSR_ENABLED
half4 ssrCol = GetSSR(worldPos, viewDir, reflect(-viewDir, normal), normal, smoothness, diffColor, metallic, screenUVs, screenPos);