From 2e1c9046dc48208c5bc86dfec8c7d4f0fc294b48 Mon Sep 17 00:00:00 2001 From: Ptolemy Date: Fri, 8 Jul 2022 14:26:15 -0700 Subject: DRTVWR-559: Add fake constant color HDRi color for testing --- .../newview/app_settings/shaders/class3/deferred/softenLightF.glsl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'indra') diff --git a/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl b/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl index 6c70781bee..906a1de951 100644 --- a/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl +++ b/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl @@ -28,11 +28,11 @@ #define PBR_USE_GGX_EMS_HACK 1 #define PBR_USE_IRRADIANCE_HACK 1 - #define DEBUG_PBR_PACKORM0 0 // Rough=0, Metal=0 #define DEBUG_PBR_PACKORM1 0 // Rough=1, Metal=1 #define DEBUG_PBR_TANGENT1 1 // Tangent = 1,0,0 #define DEBUG_PBR_VERT2CAM1 0 // vertex2camera = 0,0,1 +#define DEBUG_PBR_SPECLIGHT051 1 // Force specLigh to be 0,0.5,1 // Pass input through "as is" #define DEBUG_PBR_DIFFUSE_MAP 0 // Output: use diffuse in G-Buffer @@ -313,6 +313,10 @@ void main() irradiance += amblit*0.5*vec3(dot(n, light_dir)); #endif specLight = srgb_to_linear(specLight); +#if DEBUG_PBR_SPECLIGHT051 + specLight = vec3(0,0.5,1.0); + irradiance = specLight; +#endif #if HAS_IBL kSpec = mix( kSpec, iridescenceFresnel, iridescenceFactor); #endif -- cgit v1.2.3