summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorPtolemy <ptolemy@lindenlab.com>2022-07-01 14:55:30 -0700
committerPtolemy <ptolemy@lindenlab.com>2022-07-01 14:55:30 -0700
commit20a7dd5b50b28e2f78d8cca433ef863a462cd327 (patch)
tree6072467b52b520bd483eb57f8e4c844cb3743baa /indra
parentd047b3f46b7db0b5c27690a2d5b39af592631860 (diff)
SL-17682: PBR: Fix irradiance to use amblit
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl1
1 files changed, 1 insertions, 0 deletions
diff --git a/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl b/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl
index f89c910dcf..d9a3310a07 100644
--- a/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl
+++ b/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl
@@ -287,6 +287,7 @@ void main()
vec3 specLight = vec3(0);
float gloss = 1.0 - perceptualRough;
sampleReflectionProbes(irradiance, specLight, legacyenv, pos.xyz, norm.xyz, gloss, 0.0);
+ irradiance = max(amblit,irradiance);
#if HAS_IBL
kSpec = mix( kSpec, iridescenceFresnel, iridescenceFactor);
#endif