From 40c33d438afa036acfcbc58ca4078f25db1624f2 Mon Sep 17 00:00:00 2001 From: yum Date: Tue, 8 Apr 2025 17:52:52 -0700 Subject: Add static flag to limit fallback cubemap to metallic --- yum_brdf.cginc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'yum_brdf.cginc') diff --git a/yum_brdf.cginc b/yum_brdf.cginc index 8b0d659..9e44626 100644 --- a/yum_brdf.cginc +++ b/yum_brdf.cginc @@ -82,9 +82,9 @@ float4 YumBRDF(v2f i, const YumLighting light, YumPbr pbr) { #if defined(_MATERIAL_TYPE_CLOTH_SUBSURFACE) // No need to multiply by NoL when using subsurface scattering - direct_cloth = (Fd + Fr * NoL_wrapped_d) * light.direct * _Cloth_Direct_Multiplier; + direct_cloth = (Fd + Fr * NoL) * light.direct * _Cloth_Direct_Multiplier; #else - direct_cloth = (Fd + Fr) * NoL_wrapped_d * light.direct * _Cloth_Direct_Multiplier; + direct_cloth = (Fd + Fr) * NoL * light.direct * _Cloth_Direct_Multiplier; #endif } #endif -- cgit v1.2.3