diff options
| author | yum <yum.food.vr@gmail.com> | 2024-12-16 10:18:59 -0800 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2024-12-16 10:18:59 -0800 |
| commit | 07a94ee97d02aa31b428cbc1f67dc7f8ae58a403 (patch) | |
| tree | 6da50596814c971f954f94f4401d545e276eb766 /filament_math.cginc | |
| parent | f27c89c6ba69ad7abbe60b03e0cc4ccc75f24369 (diff) | |
Fix clearcoat
Diffstat (limited to 'filament_math.cginc')
| -rw-r--r-- | filament_math.cginc | 5 |
1 files changed, 3 insertions, 2 deletions
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; } |
