summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorPtolemy <ptolemy@lindenlab.com>2022-07-05 08:22:36 -0700
committerPtolemy <ptolemy@lindenlab.com>2022-07-05 08:22:36 -0700
commit49c923bf3ce941b62110a537709b9bf5a368be7a (patch)
treede132784cc6805b6fdd738ceba6e576223914b07 /indra
parentc25717cb353b64f0c9e68e0baaa56a8654e21e0f (diff)
SL-17682: PBR: Fix debug normal output to match glTF Sample Viewer
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl3
1 files changed, 2 insertions, 1 deletions
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;