From 07a94ee97d02aa31b428cbc1f67dc7f8ae58a403 Mon Sep 17 00:00:00 2001 From: yum Date: Mon, 16 Dec 2024 10:18:59 -0800 Subject: Fix clearcoat --- filament_math.cginc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'filament_math.cginc') diff --git a/filament_math.cginc b/filament_math.cginc index e9dcb70..66a1170 100644 --- a/filament_math.cginc +++ b/filament_math.cginc @@ -255,10 +255,11 @@ float FilamentClearcoat( float strength, float NoH, float LoH, - float3 h) { + float3 h, + out float Fc) { float Dc = D_GGX(roughness, NoH, h); float Vc = V_Kelemen(LoH); - float Fc = F_Schlick(0.04, LoH) * strength; + Fc = F_Schlick(0.04, LoH) * strength; return (Dc * Vc) * Fc; } -- cgit v1.2.3