summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings/shaders/class1/deferred
diff options
context:
space:
mode:
authorPtolemy <ptolemy@lindenlab.com>2022-07-21 19:28:17 -0700
committerPtolemy <ptolemy@lindenlab.com>2022-07-21 19:28:17 -0700
commit6b44436df2c13b7c6312261f7e92d89694685198 (patch)
treee5f753159722f1ba41c9d453356337f8ef8d0551 /indra/newview/app_settings/shaders/class1/deferred
parent35a97efcb713db780399bb6ce1fbb38e517bd570 (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/class1/deferred')
-rw-r--r--indra/newview/app_settings/shaders/class1/deferred/pbropaqueF.glsl8
1 files changed, 7 insertions, 1 deletions
diff --git a/indra/newview/app_settings/shaders/class1/deferred/pbropaqueF.glsl b/indra/newview/app_settings/shaders/class1/deferred/pbropaqueF.glsl
index 5072f16988..e6f2c9d02b 100644
--- a/indra/newview/app_settings/shaders/class1/deferred/pbropaqueF.glsl
+++ b/indra/newview/app_settings/shaders/class1/deferred/pbropaqueF.glsl
@@ -25,6 +25,8 @@
/*[EXTRA_CODE_HERE]*/
+#define DEBUG_PBR_LIGHT_TYPE 0 // Output Diffuse=0.75, Emissive=0, ORM=0,0,0
+
#define DEBUG_BASIC 0
#define DEBUG_VERTEX 0
#define DEBUG_NORMAL_MAP 0 // Output packed normal map "as is" to diffuse
@@ -120,7 +122,11 @@ void main()
emissive *= texture2D(emissiveMap, vary_texcoord0.xy).rgb;
#endif
-
+#if DEBUG_PBR_LIGHT_TYPE
+ col.rgb = vec3(0.75);
+ emissive = vec3(0);
+ spec.rgb = vec3(0);
+#endif
#if DEBUG_BASIC
col.rgb = vec3( 1, 0, 1 );
#endif