summaryrefslogtreecommitdiffstats
path: root/pbr.cginc
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2026-02-24 00:35:19 -0800
committeryum <yum.food.vr@gmail.com>2026-02-24 00:35:19 -0800
commit498d393177591b0001d322ba1fa784b332a376d2 (patch)
tree036940535946268a76d5cd11646d01676e7dc35c /pbr.cginc
parent12da92ff5055748dbcfdb165310a7f83a84c2228 (diff)
meow
Diffstat (limited to 'pbr.cginc')
-rwxr-xr-xpbr.cginc2
1 files changed, 2 insertions, 0 deletions
diff --git a/pbr.cginc b/pbr.cginc
index be67501..a01c185 100755
--- a/pbr.cginc
+++ b/pbr.cginc
@@ -24,6 +24,7 @@ struct Pbr {
#endif
#if defined(_CLEARCOAT)
float cc_roughness;
+ float cc_roughness_perceptual;
float cc_strength;
#endif
#if defined(_IMPOSTORS_DEPTH)
@@ -228,6 +229,7 @@ Pbr getPbr(v2f i) {
#if defined(_CLEARCOAT)
pbr.cc_roughness = _Clearcoat_Roughness;
+ pbr.cc_roughness_perceptual = sqrt(pbr.cc_roughness);
pbr.cc_strength = _Clearcoat_Strength;
#endif
propagateSmoothness(pbr);