From 4e3ca393c0d569bd3343861f878e1772c8e1b102 Mon Sep 17 00:00:00 2001 From: Ptolemy Date: Thu, 11 Aug 2022 22:02:54 -0700 Subject: SL-17736: Remove Irradiance hack. Use EEP Reflection Probe Ambiance to adjust irradiance. --- indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl | 4 ---- 1 file changed, 4 deletions(-) (limited to 'indra/newview') diff --git a/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl b/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl index 510f8c8b45..d1c8ce9606 100644 --- a/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl +++ b/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl @@ -25,7 +25,6 @@ #define PBR_USE_ATMOS 0 #define PBR_USE_GGX_EMS_HACK 0 -#define PBR_USE_IRRADIANCE_HACK 1 #define DEBUG_PBR_LIGHT_TYPE 0 // Output no global light to make it easier to see pointLight and spotLight #define DEBUG_PBR_PACKORM0 0 // Rough=0, Metal=0 @@ -292,9 +291,6 @@ void main() vec3 debug_irradiance = irradiance; #endif irradiance = max(amblit,irradiance) * ambocc; -#if PBR_USE_IRRADIANCE_HACK - 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); -- cgit v1.2.3