From eb1529d4401cc4d385ef8bc806a186890999fed6 Mon Sep 17 00:00:00 2001 From: yum Date: Fri, 28 Feb 2025 15:17:43 -0800 Subject: add basic clearcoat lobe --- filamented.cginc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'filamented.cginc') 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]); -- cgit v1.2.3