diff options
author | Ptolemy <ptolemy@lindenlab.com> | 2022-06-29 13:55:26 -0700 |
---|---|---|
committer | Ptolemy <ptolemy@lindenlab.com> | 2022-06-29 13:55:26 -0700 |
commit | d9ce24309d5f6537a526e233e1b6a6f6f4da4bc5 (patch) | |
tree | d24393efebb8c8e1d87f6438755731c2ab47a14f /indra/newview/app_settings/shaders | |
parent | 714667847edb406523405c06d18daa9bc1bcf1d3 (diff) |
SL-17274: Add reflection dir debugging
Diffstat (limited to 'indra/newview/app_settings/shaders')
-rw-r--r-- | indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl | 4 |
1 files changed, 4 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 dc22511bb3..4c082dcd98 100644 --- a/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl +++ b/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl @@ -56,6 +56,7 @@ #define DEBUG_PBR_REFLECT0_BASE 0 // Output: black reflect0 default from ior #define DEBUG_PBR_REFLECT0_MIX 0 // Output: diffuse reflect0 calculated from ior #define DEBUG_PBR_REFLECTANCE 0 // Output: diffuse reflectance -- NOT USED +#define DEBUG_PBR_REFLECTION 0 // Output: reflection dir #define DEBUG_PBR_SPEC 0 // Output: Final spec #define DEBUG_PBR_SPEC_REFLECTION 0 // Output: environment reflection #define DEBUG_PBR_V2C_RAW 0 // Output: vertex2camera @@ -361,6 +362,9 @@ void main() #if DEBUG_PBR_REFLECTANCE color.rgb = vec3(reflectance); #endif + #if DEBUG_PBR_REFLECTION + color.rgb = reflect(-v, n); // NOTE: equivalent to normalize(reflect(pos.xyz, norm.xyz)); + #endif #if DEBUG_PBR_SPEC color.rgb = colorSpec; #endif |