summaryrefslogtreecommitdiffstats
path: root/filament_math.cginc
diff options
context:
space:
mode:
Diffstat (limited to 'filament_math.cginc')
-rw-r--r--filament_math.cginc5
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;
}