From eff9f08bd9128bfa64ce1b86ce0d74a76d8cc548 Mon Sep 17 00:00:00 2001
From: Ptolemy <ptolemy@lindenlab.com>
Date: Wed, 31 Aug 2022 13:19:56 -0700
Subject: [PATCH] DRTVWR-559: PBR: Disable PBR bloom

---
 .../app_settings/shaders/class3/deferred/softenLightF.glsl   | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl b/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl
index fe829edb889..507eb376277 100644
--- a/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl
+++ b/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl
@@ -390,7 +390,10 @@ void main()
             vec3 sunDiffuse = base * intensity * BRDFLambertian (reflect0, reflect90, c_diff    , specWeight, vh);
             vec3 sunSpec    =        intensity * BRDFSpecularGGX(reflect0, reflect90, alphaRough, specWeight, vh, nl, nv, nh);
 #endif
-            bloom = dot(sunSpec, sunSpec) / (scale * scale * scale);
+            // Disabling PBR bloom due to two reasons:
+            //   1. The glTF 2.0 Specification does not specify bloom,
+            //   2. As the camera moves there are lots of bloom shimmering.
+            //bloom = dot(sunSpec, sunSpec) / (scale * scale * scale);
 
     #if DEBUG_PBR_SUN_SPEC_FRESNEL
             colorDiffuse = vec3(0);
-- 
GitLab