diff options
| author | yum <yum.food.vr@gmail.com> | 2025-02-28 15:17:43 -0800 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2025-02-28 15:17:43 -0800 |
| commit | eb1529d4401cc4d385ef8bc806a186890999fed6 (patch) | |
| tree | f73f77b9f6b2b676f80d3071c591b53985655018 /filamented.cginc | |
| parent | 646482b01a552fddfff33e31aeb9275644d08336 (diff) | |
add basic clearcoat lobe
Diffstat (limited to 'filamented.cginc')
| -rw-r--r-- | filamented.cginc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/filamented.cginc b/filamented.cginc index 9edfca5..fac3fef 100644 --- a/filamented.cginc +++ b/filamented.cginc @@ -241,7 +241,7 @@ float3 PrefilteredDFG_LUT(float lod, float NoV) { return UNITY_SAMPLE_TEX2D(_DFG, float2(NoV, lod)); } -float3 specularDFG(const float3 dfg, const float f0) { +float3 specularDFG(const float3 dfg, const float3 f0) { return lerp(dfg.xxx, dfg.yyy, f0); } @@ -355,7 +355,6 @@ inline half3 UnityGI_prefilteredRadiance(const UnityGIInput data, glossIn.reflUVW = r; #ifdef UNITY_SPECCUBE_BOX_PROJECTION - // we will tweak reflUVW in glossIn directly (as we pass it to Unity_GlossyEnvironment twice for probe0 and pr obe1), so keep original to pass into BoxProjectedCubemapDirection half3 originalReflUVW = glossIn.reflUVW; glossIn.reflUVW = BoxProjectedCubemapDirection(originalReflUVW, data.worldPos, data.probePosition[0], data.boxMin[0], data.boxMax[0]); |
