SL-17274: PBR: Add reflect0 debugging

meow-7.2.2
Ptolemy 2022-06-28 10:39:48 -07:00
parent 4de6e88085
commit 39092990b7
1 changed files with 8 additions and 0 deletions

View File

@ -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