From bcd630cad91cdcf5f188d3ea9ad69bb7df1eb86c Mon Sep 17 00:00:00 2001
From: Ptolemy <ptolemy@lindenlab.com>
Date: Tue, 5 Jul 2022 20:03:54 -0700
Subject: [PATCH] SL-17682: PBR: Fix roughness debug output to match glTF
 Sample Viewer

---
 .../app_settings/shaders/class3/deferred/softenLightF.glsl       | 1 +
 1 file changed, 1 insertion(+)

diff --git a/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl b/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl
index ca0306b24a1..8b9c8aff921 100644
--- a/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl
+++ b/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl
@@ -332,6 +332,7 @@ void main()
     #endif
     #if DEBUG_PBR_ROUGH_PERCEPTUAL
         color.rgb = vec3(perceptualRough);
+        color.rgb = linear_to_srgb(color.rgb);
     #endif
     #if DEBUG_PBR_ROUGH_ALPHA
         color.rgb = vec3(alphaRough);
-- 
GitLab