summaryrefslogtreecommitdiffstats
path: root/MochieStandardBRDF.cginc
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2024-07-15 14:23:47 -0700
committeryum <yum.food.vr@gmail.com>2024-07-15 14:23:47 -0700
commitbfc062d1f056f13dcc43d50c995124288fef5967 (patch)
tree928520fba54204ee68aac55fa07bf72f64f89cf4 /MochieStandardBRDF.cginc
parent65960b924a861f273b72157456aabaa694831976 (diff)
Add clearcoat mask
Diffstat (limited to 'MochieStandardBRDF.cginc')
-rw-r--r--MochieStandardBRDF.cginc14
1 files changed, 0 insertions, 14 deletions
diff --git a/MochieStandardBRDF.cginc b/MochieStandardBRDF.cginc
index 90f5df5..515798e 100644
--- a/MochieStandardBRDF.cginc
+++ b/MochieStandardBRDF.cginc
@@ -1,9 +1,6 @@
#ifndef MOCHIE_STANDARD_BRDF_INCLUDED
#define MOCHIE_STANDARD_BRDF_INCLUDED
-#include "filament_math.cginc"
-#include "globals.cginc"
-
/*
* MIT License
*
@@ -173,17 +170,6 @@ half4 BRDF1_Mochie_PBS (
// reflCol *= lerp(1, vertexColor, _ReflVertexColor*_ReflVertexColorStrength);
// #endif
-#if defined(_CLEARCOAT)
- half cc_nh = saturate(dot(mesh_normal, halfDir));
- float clearcoat = FilamentClearcoat(
- _Clearcoat_Roughness,
- _Clearcoat_Strength,
- cc_nh,
- lh,
- halfDir);
- specCol += clearcoat * saturate(dot(mesh_normal, light.dir)) * 10;
-#endif
-
return half4(diffCol + specCol + reflCol + subsurfaceCol, 1);
}