summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings
diff options
context:
space:
mode:
authorPtolemy <ptolemy@lindenlab.com>2022-08-11 22:02:54 -0700
committerPtolemy <ptolemy@lindenlab.com>2022-08-11 22:02:54 -0700
commit4e3ca393c0d569bd3343861f878e1772c8e1b102 (patch)
tree1bd7f95eb47a4049bbf27ae6cf421b463600b4a0 /indra/newview/app_settings
parent9586465672dcedd16bbbaf4e104b76acaf05ebb8 (diff)
SL-17736: Remove Irradiance hack. Use EEP Reflection Probe Ambiance to adjust irradiance.
Diffstat (limited to 'indra/newview/app_settings')
-rw-r--r--indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl4
1 files changed, 0 insertions, 4 deletions
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);