summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPtolemy <ptolemy@lindenlab.com>2022-06-24 15:10:09 -0700
committerPtolemy <ptolemy@lindenlab.com>2022-06-24 15:10:09 -0700
commit11a67c57b8816c1a1141313301721fd4e0998b17 (patch)
treefa938f4248998eaee69fe61ef643f0a4de2962b6
parent668be68dd1285698d0f0131d2d6a568d913eecaf (diff)
SL-17274: PBR: Add BRDF debug
-rw-r--r--indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl11
1 files changed, 8 insertions, 3 deletions
diff --git a/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl b/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl
index d2176130dc..8b82d544cd 100644
--- a/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl
+++ b/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl
@@ -36,12 +36,14 @@
#define DEBUG_PBR_ROUGH_ALPHA 0 // Output: grayscale Alpha Roughness
#define DEBUG_PBR_METAL 0 // Output: grayscale metal
#define DEBUG_PBR_REFLECTANCE 0 // Output: diffuse reflectance
+#define DEBUG_PBR_BRDF_UV 0 // Output: red green BRDF UV (GGX input)
+#define DEBUG_PBR_BRDF_SCALE_BIAS 0 // Output: red green BRDF Scale Bias (GGX output)
#define DEBUG_PBR_SPEC 0 // Output: Final spec
#define DEBUG_PBR_SPEC_REFLECTION 0 // Output: reflection
#define DEBUG_PBR_NORMAL 0 // Output: passed in normal
#define DEBUG_PBR_VIEW 0 // Output: view_dir
#define DEBUG_PBR_BRDF 0 // Output: Environment BRDF
-#define DEBUG_PBR_DOT_NV 0 // Output:
+#define DEBUG_PBR_DOT_NV 0 // Output: grayscale dot(Normal,ViewDir)
#define DEBUG_PBR_DOT_TV 0 // Output:
#define DEBUG_PBR_DOT_BV 0 // Output:
#define DEBUG_PBR_FRESNEL 0 // Output: roughness dependent fresnel
@@ -255,8 +257,11 @@ void main()
color.rgb = colorDiffuse + colorEmissive + colorSpec;
- #if DEBUG_PBR_BRDF
- color.rgb = vec3(vScaleBias,0);
+ #if DEBUG_PBR_BRDF_UV
+ color.rgb = vec3(brdfPoint,0.0);
+ #endif
+ #if DEBUG_PBR_BRDF_SCALE_BIAS
+ color.rgb = vec3(vScaleBias,0.0);
#endif
#if DEBUG_PBR_FRESNEL
color.rgb = fresnelR;