From 7de5e8cda66a461e01e5a3dbfc928b01f9462b31 Mon Sep 17 00:00:00 2001 From: Rye Mutt <rye@alchemyviewer.org> Date: Mon, 6 Sep 2021 21:21:30 -0400 Subject: [PATCH] Fix atmospheric specular reflection being utilized as linear in an srgb portion of shading --- .../app_settings/shaders/class1/deferred/softenLightF.glsl | 1 + .../app_settings/shaders/class2/deferred/softenLightF.glsl | 1 + 2 files changed, 2 insertions(+) diff --git a/indra/newview/app_settings/shaders/class1/deferred/softenLightF.glsl b/indra/newview/app_settings/shaders/class1/deferred/softenLightF.glsl index f35b815e8a0..ceab80b028a 100644 --- a/indra/newview/app_settings/shaders/class1/deferred/softenLightF.glsl +++ b/indra/newview/app_settings/shaders/class1/deferred/softenLightF.glsl @@ -123,6 +123,7 @@ void main() if (spec.a > 0.0) // specular reflection { + spec.rgb = linear_to_srgb(spec.rgb); #if 0 //EEP vec3 npos = -normalize(pos.xyz); diff --git a/indra/newview/app_settings/shaders/class2/deferred/softenLightF.glsl b/indra/newview/app_settings/shaders/class2/deferred/softenLightF.glsl index b15fbd94ad0..87db67757b1 100644 --- a/indra/newview/app_settings/shaders/class2/deferred/softenLightF.glsl +++ b/indra/newview/app_settings/shaders/class2/deferred/softenLightF.glsl @@ -120,6 +120,7 @@ void main() if (spec.a > 0.0) // specular reflection { + spec.rgb = linear_to_srgb(spec.rgb); #if 0 //EEP vec3 npos = -normalize(pos.xyz); -- GitLab