From bfc062d1f056f13dcc43d50c995124288fef5967 Mon Sep 17 00:00:00 2001 From: yum Date: Mon, 15 Jul 2024 14:23:47 -0700 Subject: Add clearcoat mask --- MochieStandardBRDF.cginc | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'MochieStandardBRDF.cginc') 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); } -- cgit v1.2.3