From bcd630cad91cdcf5f188d3ea9ad69bb7df1eb86c Mon Sep 17 00:00:00 2001 From: Ptolemy Date: Tue, 5 Jul 2022 20:03:54 -0700 Subject: SL-17682: PBR: Fix roughness debug output to match glTF Sample Viewer --- 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 ca0306b24a..8b9c8aff92 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); -- cgit v1.2.3