summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings/shaders/class3/deferred/pointLightF.glsl
diff options
context:
space:
mode:
authorPtolemy <ptolemy@lindenlab.com>2022-08-22 15:52:43 -0700
committerPtolemy <ptolemy@lindenlab.com>2022-08-22 15:52:43 -0700
commite6171a8d097b2ac0242a29dcd78e297da27d7c97 (patch)
tree6fd07b0f658e3fd2f0e6a16b119ef0ec31294eb7 /indra/newview/app_settings/shaders/class3/deferred/pointLightF.glsl
parentb8c46f9615bffa0e6aeb909924c39581b160fdef (diff)
SL-17975: PBR: Add light debugging
Diffstat (limited to 'indra/newview/app_settings/shaders/class3/deferred/pointLightF.glsl')
-rw-r--r--indra/newview/app_settings/shaders/class3/deferred/pointLightF.glsl16
1 files changed, 15 insertions, 1 deletions
diff --git a/indra/newview/app_settings/shaders/class3/deferred/pointLightF.glsl b/indra/newview/app_settings/shaders/class3/deferred/pointLightF.glsl
index 42d7407456..a1298a8409 100644
--- a/indra/newview/app_settings/shaders/class3/deferred/pointLightF.glsl
+++ b/indra/newview/app_settings/shaders/class3/deferred/pointLightF.glsl
@@ -27,7 +27,10 @@
/*[EXTRA_CODE_HERE]*/
-#define DEBUG_PBR_LIGHT_TYPE 0
+#define DEBUG_ANY_LIGHT_TYPE 0 // Output magenta light cone
+#define DEBUG_LEG_LIGHT_TYPE 0 // Show Legacy objects in green
+#define DEBUG_PBR_LIGHT_TYPE 0 // Show PBR objects in blue
+#define DEBUG_POINT_ZERO 0 // Output zero for point light
#ifdef DEFINE_GL_FRAGCOLOR
out vec4 frag_color;
@@ -156,8 +159,19 @@ void main()
{
discard;
}
+
+#if DEBUG_LEG_LIGHT_TYPE
+ final_color.rgb = vec3(0,0.25,0);
+#endif
}
+#if DEBUG_POINT_ZERO
+ final_color = vec3(0);
+#endif
+#if DEBUG_ANY_LIGHT_TYPE
+ final_color = vec3(0.25,0,0.25);
+#endif
+
frag_color.rgb = final_color;
frag_color.a = 0.0;
}