summaryrefslogtreecommitdiffstats
path: root/brdf.cginc
diff options
context:
space:
mode:
Diffstat (limited to 'brdf.cginc')
-rwxr-xr-xbrdf.cginc3
1 files changed, 1 insertions, 2 deletions
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)) {