From 626ef903b272fe8636d5e18d9b9b573d9bd22321 Mon Sep 17 00:00:00 2001 From: Ptolemy Date: Tue, 28 Jun 2022 10:43:50 -0700 Subject: SL-17274: PBR: Add kDiffuse debugging --- indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'indra/newview/app_settings/shaders/class3/deferred') diff --git a/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl b/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl index 15a3775569..a0a2f95651 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_MIX 0 // Output: diffuse reflect0 calculated from ior #define DEBUG_PBR_FE_GGX 0 // Output: FssEssGGX #define DEBUG_PBR_FE_LAMBERT 0 // Output: FssEssLambert +#define DEBUG_PBR_DIFFUSE_K 0 // Output: diffuse FssEssLambert + FmsEms #extension GL_ARB_texture_rectangle : enable #extension GL_ARB_shader_texture_lod : enable @@ -313,6 +314,9 @@ void main() #if DEBUG_PBR_DIFFUSE color.rgb = colorDiffuse; #endif + #if DEBUG_PBR_DIFFUSE_K + color.rgb = kDiffuse; + #endif #if DEBUG_PBR_EMISSIVE color.rgb = colorEmissive; #endif -- cgit v1.2.3