From 49c923bf3ce941b62110a537709b9bf5a368be7a Mon Sep 17 00:00:00 2001 From: Ptolemy Date: Tue, 5 Jul 2022 08:22:36 -0700 Subject: SL-17682: PBR: Fix debug normal output to match glTF Sample Viewer --- indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'indra') diff --git a/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl b/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl index 2990797c9b..e5f5901e18 100644 --- a/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl +++ b/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl @@ -337,7 +337,8 @@ void main() #endif #if DEBUG_PBR_NORMAL - color.rgb = norm.xyz; + color.rgb = norm.xyz*0.5 + vec3(0.5); + color.rgb = srgb_to_linear(color.rgb); #endif #if DEBUG_PBR_TANGENT color.rgb = t; -- cgit v1.2.3