summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/app_settings')
-rw-r--r--indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl7
1 files changed, 7 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 bba1dd3902..c5b27ec52c 100644
--- a/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl
+++ b/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl
@@ -61,6 +61,7 @@
// IBL Diffuse
#define DEBUG_PBR_DIFFUSE_C 0 // Output: diffuse non metal mix
+#define DEBUG_PBR_IRRADIANCE_RAW 0 // Output: Diffuse Irradiance pre-mix
#define DEBUG_PBR_IRRADIANCE 0 // Output: Diffuse Irradiance
#define DEBUG_PBR_FSS_ESS_LAMBERT 0 // Output: FssEssLambert
#define DEBUG_PBR_EMS 0 // Output: Ems
@@ -289,6 +290,9 @@ void main()
vec3 specLight = vec3(0);
float gloss = 1.0 - perceptualRough;
sampleReflectionProbes(irradiance, specLight, legacyenv, pos.xyz, norm.xyz, gloss, 0.0);
+#if DEBUG_PBR_IRRADIANCE_RAW
+ vec3 debug_irradiance = irradiance;
+#endif
irradiance = max(amblit,irradiance);
specLight = srgb_to_linear(specLight);
#if HAS_IBL
@@ -403,6 +407,9 @@ void main()
#if DEBUG_PBR_IOR
color.rgb = vec3(IOR);
#endif
+ #if DEBUG_PBR_IRRADIANCE_RAW
+ color.rgb = debug_irradiance;
+ #endif
#if DEBUG_PBR_IRRADIANCE
color.rgb = irradiance;
#endif