From 7cdf39f51b47553af89c3de5b86d33ded4b5cdd2 Mon Sep 17 00:00:00 2001 From: yum Date: Fri, 8 Aug 2025 19:14:38 -0700 Subject: Add cloth lobe & IBL DFG LUTs - add monte carlo integrator to produce the luts - fix layer energy integration; should be multiplicative, not additive --- globals.cginc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'globals.cginc') diff --git a/globals.cginc b/globals.cginc index 12e86c8..3ccaac4 100644 --- a/globals.cginc +++ b/globals.cginc @@ -7,6 +7,7 @@ SamplerState point_repeat_s; SamplerState linear_repeat_s; SamplerState bilinear_repeat_s; SamplerState linear_clamp_s; +SamplerState bilinear_clamp_s; SamplerState trilinear_repeat_s; int _Mode; // opaque, cutout, transparent, etc. @@ -25,6 +26,7 @@ float4 _MetallicGlossMap_ST; float _Glossiness; float _Metallic; +texture2D _DFG_LUT; float _Specular_AA_Variance; float _Specular_AA_Threshold; float _BRDF_Specular_Min_Denom; @@ -49,4 +51,10 @@ float _Clearcoat_Strength; float _Clearcoat_Roughness; #endif // _CLEARCOAT +#if defined(_CLOTH_SHEEN) +float _Cloth_Sheen_Strength; +float3 _Cloth_Sheen_Color; +texture2D _Cloth_Sheen_DFG_LUT; +#endif // _CLOTH_SHEEN + #endif // __GLOBALS_INC -- cgit v1.2.3