From 498d393177591b0001d322ba1fa784b332a376d2 Mon Sep 17 00:00:00 2001 From: yum Date: Tue, 24 Feb 2026 00:35:19 -0800 Subject: meow --- brdf.cginc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'brdf.cginc') diff --git a/brdf.cginc b/brdf.cginc index 1e920bb..0ce723c 100755 --- a/brdf.cginc +++ b/brdf.cginc @@ -96,8 +96,7 @@ float4 brdf(Pbr pbr, LightData data) { #if defined(_CLEARCOAT) const float cc_f0 = 0.04f; - float cc_perceptual_roughness = saturate(sqrt(pbr.cc_roughness)); - float2 cc_dfg_uv = float2(data.common.NoV_cc, cc_perceptual_roughness); + float2 cc_dfg_uv = float2(data.common.NoV_cc, pbr.cc_roughness_perceptual); float3 cc_dfg; [branch] if (textureExists(_DFG_LUT)) { -- cgit v1.2.3