diff options
author | Ptolemy <ptolemy@lindenlab.com> | 2022-07-06 20:48:06 -0700 |
---|---|---|
committer | Ptolemy <ptolemy@lindenlab.com> | 2022-07-06 20:48:06 -0700 |
commit | 5862d15068373adaf76c83024582999ed940ab16 (patch) | |
tree | 0046ced582b2cfef5c726417b89bd4b2eddbd0b2 /indra/newview | |
parent | 51d69631820250dbae90867b1b4085c6cf69a4ee (diff) |
SL-17736: PBR: Add irradiance raw debugging
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl | 7 |
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 |