From c25717cb353b64f0c9e68e0baaa56a8654e21e0f Mon Sep 17 00:00:00 2001 From: Ptolemy Date: Fri, 1 Jul 2022 16:09:39 -0700 Subject: SL-17682: PBR: Fix spec reflection being blown out --- indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl | 1 + 1 file changed, 1 insertion(+) (limited to 'indra/newview/app_settings') 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 -- cgit v1.2.3