diff options
| author | yum <yum.food.vr@gmail.com> | 2024-11-03 15:25:08 -0800 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2024-11-03 15:25:54 -0800 |
| commit | b7d3cb5d759feab1e44f4cdb01a0c8922bf4f1cb (patch) | |
| tree | cc10c40ac2e632dd07a0ac0fe515048b354af7f9 /MochieStandardBRDF.cginc | |
| parent | cb55e813456480a036673d1d32608e10b10c8f87 (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.cginc | 1 |
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); |
