summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings/shaders/class1
diff options
context:
space:
mode:
authorPtolemy <ptolemy@lindenlab.com>2022-06-24 15:37:42 -0700
committerPtolemy <ptolemy@lindenlab.com>2022-06-24 15:37:42 -0700
commita5891e3d5b4da847c8dc677e37883341caace613 (patch)
tree320414fe39dedb28855d0b45608401546925dd83 /indra/newview/app_settings/shaders/class1
parent11a67c57b8816c1a1141313301721fd4e0998b17 (diff)
SL-17274: PBR: Add DEBUG_NORMAL_RAW, DEBUG_NORMAL_OUT to PBR shader
Diffstat (limited to 'indra/newview/app_settings/shaders/class1')
-rw-r--r--indra/newview/app_settings/shaders/class1/deferred/pbropaqueF.glsl8
1 files changed, 6 insertions, 2 deletions
diff --git a/indra/newview/app_settings/shaders/class1/deferred/pbropaqueF.glsl b/indra/newview/app_settings/shaders/class1/deferred/pbropaqueF.glsl
index 5538b445fa..8cbb62b301 100644
--- a/indra/newview/app_settings/shaders/class1/deferred/pbropaqueF.glsl
+++ b/indra/newview/app_settings/shaders/class1/deferred/pbropaqueF.glsl
@@ -27,7 +27,8 @@
#define DEBUG_BASIC 0
#define DEBUG_VERTEX 0
-#define DEBUG_NORMAL 0
+#define DEBUG_NORMAL_RAW 0 // Output packed normal map "as is" to diffuse
+#dfeine DEBUG_NORMAL_OUT 0 // Output unpacked normal to diffuse
#define DEBUG_POSITION 0
uniform sampler2D diffuseMap; //always in sRGB space
@@ -126,7 +127,10 @@ void main()
#if DEBUG_VERTEX
col.rgb = vertex_color.rgb;
#endif
-#if DEBUG_NORMAL
+#if DEBUG_NORMAL_RAW
+ col.rgb = texture2D(bumpMap, vary_texcoord1.xy).rgb;
+#endif
+#if DEBUG_NORMAL_OUT
col.rgb = vary_normal;
#endif
#if DEBUG_POSITION