diff options
author | Ptolemy <ptolemy@lindenlab.com> | 2022-07-01 14:55:30 -0700 |
---|---|---|
committer | Ptolemy <ptolemy@lindenlab.com> | 2022-07-01 14:55:30 -0700 |
commit | 20a7dd5b50b28e2f78d8cca433ef863a462cd327 (patch) | |
tree | 6072467b52b520bd483eb57f8e4c844cb3743baa /indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl | |
parent | d047b3f46b7db0b5c27690a2d5b39af592631860 (diff) |
SL-17682: PBR: Fix irradiance to use amblit
Diffstat (limited to 'indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl')
-rw-r--r-- | indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl | 1 |
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 |