From e4eeb325d08242a3a7e36a1a4a97d2a3a9eff943 Mon Sep 17 00:00:00 2001 From: Paul <115061077+papadanku@users.noreply.github.com> Date: Wed, 17 May 2023 01:33:38 -0700 Subject: [PATCH 1/2] Update cBloom.fx --- shaders/cBloom.fx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/shaders/cBloom.fx b/shaders/cBloom.fx index 9b26f75..f47a7b0 100644 --- a/shaders/cBloom.fx +++ b/shaders/cBloom.fx @@ -197,14 +197,12 @@ namespace cBloom float LC = 1.0 / (Max3(C.rgb) + 1.0); float LD = 1.0 / (Max3(D.rgb) + 1.0); float LE = 1.0 / (Max3(E.rgb) + 1.0); - float RcpSumL = 1.0 / (LA + LB + LC + LD + LE); OutputColor += (A * LA); OutputColor += (B * LB); OutputColor += (C * LC); OutputColor += (D * LD); OutputColor += (E * LE); - OutputColor *= RcpSumL; } else { @@ -338,4 +336,4 @@ namespace cBloom PixelShader = PS_Composite; } } -} \ No newline at end of file +} From 65805e772129435559b8be9b1eca2b0dcd79e4f5 Mon Sep 17 00:00:00 2001 From: Paul <115061077+papadanku@users.noreply.github.com> Date: Wed, 17 May 2023 03:08:16 -0700 Subject: [PATCH 2/2] Update cBloom.fx --- shaders/cBloom.fx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/shaders/cBloom.fx b/shaders/cBloom.fx index f47a7b0..b646345 100644 --- a/shaders/cBloom.fx +++ b/shaders/cBloom.fx @@ -197,12 +197,14 @@ namespace cBloom float LC = 1.0 / (Max3(C.rgb) + 1.0); float LD = 1.0 / (Max3(D.rgb) + 1.0); float LE = 1.0 / (Max3(E.rgb) + 1.0); + float RcpSumL = 1.0 / (LA + LB + LC + LD + LE); OutputColor += (A * LA); OutputColor += (B * LB); OutputColor += (C * LC); OutputColor += (D * LD); OutputColor += (E * LE); + OutputColor *= RcpSumL; } else {