summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2022-08-30 15:46:38 -0500
committerDave Parks <davep@lindenlab.com>2022-08-30 15:46:38 -0500
commit2158162b50673afd7b93822823ce1f2be78e2842 (patch)
treea1735c6b306a0b53253950dcad620e5592f345ba /indra
parent03d012d46cbcc6d67f6241ce66649e92688f246f (diff)
SL-18055 Fix for soft cube maps on chrome (don't clamp roughness value)
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl b/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl
index 998ebf8836..34ebb67c3c 100644
--- a/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl
+++ b/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl
@@ -296,7 +296,7 @@ void main()
// Reference: getMetallicRoughnessInfo
vec3 base = linear_to_srgb(diffuse.rgb);
- float perceptualRough = max(packedORM.g, 0.1);
+ float perceptualRough = packedORM.g; // NOTE: do NOT clamp here to be consistent with Blender, Blender is wrong and Substance is right
vec3 c_diff, reflect0, reflect90;
float alphaRough, specWeight;
initMaterial( base, packedORM, alphaRough, c_diff, reflect0, reflect90, specWeight );