From 23126b78255adcb02bafe39891d31da70a0884e8 Mon Sep 17 00:00:00 2001 From: Ptolemy Date: Wed, 24 Aug 2022 23:03:31 -0700 Subject: SL-17703: PBR: Convert sunlight color in sRGB to Linear due to EEP/Windlight. --- indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'indra/newview/app_settings/shaders') diff --git a/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl b/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl index 8ee8210fb8..d4140a0d92 100644 --- a/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl +++ b/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl @@ -358,7 +358,7 @@ void main() if (nl > 0.0 || nv > 0.0) { - vec3 sunColor = sunlit * 2.0; // Midday should have strong sunlight + vec3 sunColor = srgb_to_linear(sunlit * 2.0); // NOTE: *2.0 Midday should have strong sunlight #if DEBUG_PBR_SUN_FULL_BRIGHT sunColor = vec3(1); #endif -- cgit v1.2.3