summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings
diff options
context:
space:
mode:
authorPtolemy <ptolemy@lindenlab.com>2022-06-28 10:39:48 -0700
committerPtolemy <ptolemy@lindenlab.com>2022-06-28 10:39:48 -0700
commit39092990b712342a5327f3dbdd63f634d4f0d847 (patch)
tree60657c91afa00ce5974a2b91f7cd4b66a22cd183 /indra/newview/app_settings
parent4de6e8808586fe1b806f955d3ddd785c6d827a16 (diff)
SL-17274: PBR: Add reflect0 debugging
Diffstat (limited to 'indra/newview/app_settings')
-rw-r--r--indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl8
1 files changed, 8 insertions, 0 deletions
diff --git a/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl b/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl
index 758b267b40..c83fa3615e 100644
--- a/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl
+++ b/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl
@@ -52,6 +52,8 @@
#define DEBUG_PBR_DOT_BV 0 // Output:
#define DEBUG_PBR_FRESNEL 0 // Output: roughness dependent fresnel
#define DEBUG_PBR_IOR 0 // Output: grayscale IOR
+#define DEBUG_PBR_REFLECT0_BASE 0 // Output: black reflect0 default from ior
+#define DEBUG_PBR_REFLECT0_MIX 0 // Output: diffuse reflect0 calculated from ior
#extension GL_ARB_texture_rectangle : enable
#extension GL_ARB_shader_texture_lod : enable
@@ -294,6 +296,12 @@ void main()
#if DEBUG_PBR_RAW_SPEC
color.rgb = spec.rgb;
#endif
+ #if DEBUG_PBR_REFLECT0_BASE
+ color.rgb = vec3(debug_reflect0);
+ #endif
+ #if DEBUG_PBR_REFLECT0_MIX
+ color.rgb = vec3(reflect0);
+ #endif
#if DEBUG_PBR_REFLECTANCE
color.rgb = vec3(reflectance);
#endif