summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings/shaders/class3/deferred/pointLightF.glsl
diff options
context:
space:
mode:
authorPtolemy <ptolemy@lindenlab.com>2022-07-21 19:28:17 -0700
committerPtolemy <ptolemy@lindenlab.com>2022-08-02 09:44:44 -0700
commit2bdb97613b1c1ac76c6c1eed7038e390d80594bd (patch)
treeadfbe0bd7bcb19cd6060951025487846c4fd7657 /indra/newview/app_settings/shaders/class3/deferred/pointLightF.glsl
parenteec96559d41fd74a4fa1137336941a6c20036eba (diff)
SL-17762: PBR: Add debug flag to turn off regular output and color code point lights and spot lights
Diffstat (limited to 'indra/newview/app_settings/shaders/class3/deferred/pointLightF.glsl')
-rw-r--r--indra/newview/app_settings/shaders/class3/deferred/pointLightF.glsl6
1 files changed, 6 insertions, 0 deletions
diff --git a/indra/newview/app_settings/shaders/class3/deferred/pointLightF.glsl b/indra/newview/app_settings/shaders/class3/deferred/pointLightF.glsl
index 8886abb7d1..5d9b4bc877 100644
--- a/indra/newview/app_settings/shaders/class3/deferred/pointLightF.glsl
+++ b/indra/newview/app_settings/shaders/class3/deferred/pointLightF.glsl
@@ -27,6 +27,8 @@
/*[EXTRA_CODE_HERE]*/
+#define DEBUG_PBR_LIGHT_TYPE 0
+
#ifdef DEFINE_GL_FRAGCOLOR
out vec4 frag_color;
#else
@@ -104,6 +106,10 @@ void main()
colorSpec += intensity * nl * BRDFSpecularGGX(reflect0, reflect90, alphaRough, specWeight, vh, nl, nv, nh);
}
+#if DEBUG_PBR_LIGHT_TYPE
+ colorDiffuse = vec3(0,0,0.5); colorSpec = vec3(0);
+#endif
+
final_color = colorDiffuse + colorSpec;
}
else