diff options
Diffstat (limited to 'pbr.cginc')
| -rwxr-xr-x | pbr.cginc | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |
