diff options
author | Ptolemy <ptolemy@lindenlab.com> | 2022-07-01 16:09:39 -0700 |
---|---|---|
committer | Ptolemy <ptolemy@lindenlab.com> | 2022-07-01 16:09:39 -0700 |
commit | c25717cb353b64f0c9e68e0baaa56a8654e21e0f (patch) | |
tree | 4b1adfbd3feea0021a1fc05b6fb1b7978e95c661 /indra/newview/app_settings/shaders | |
parent | 56a0a30e03787d3e0545bce0d76772e7fbf70ad2 (diff) |
SL-17682: PBR: Fix spec reflection being blown out
Diffstat (limited to 'indra/newview/app_settings/shaders')
-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 a7d2ea0b9b..2990797c9b 100644 --- a/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl +++ b/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl @@ -289,6 +289,7 @@ void main() float gloss = 1.0 - perceptualRough; sampleReflectionProbes(irradiance, specLight, legacyenv, pos.xyz, norm.xyz, gloss, 0.0); irradiance = max(amblit,irradiance); + specLight = srgb_to_linear(specLight); #if HAS_IBL kSpec = mix( kSpec, iridescenceFresnel, iridescenceFactor); #endif |