aboutsummaryrefslogtreecommitdiff
path: root/src/client/renderingengine.h
diff options
context:
space:
mode:
authorx2048 <codeforsmile@gmail.com>2022-11-02 09:09:48 +0100
committerGitHub <noreply@github.com>2022-11-02 09:09:48 +0100
commit9b24041394ecf8210514845372d965f8d65302c9 (patch)
treebdd8f6beea3ae775e3d2dbafa452257bd8f01ff9 /src/client/renderingengine.h
parentfb3085a2c593e0671e3322fe0e7d0914a052acef (diff)
downloadminetest-9b24041394ecf8210514845372d965f8d65302c9.tar.xz
Improve bloom effect (#12916)
* Remove the built-in exposure factor of 2.5 * Add physics-based bloom (https://learnopengl.com/Guest-Articles/2022/Phys.-Based-Bloom) * Add luminance scaling for bloom layer to simulate HDR * Add setting to control bloom strength
Diffstat (limited to 'src/client/renderingengine.h')
-rw-r--r--src/client/renderingengine.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/client/renderingengine.h b/src/client/renderingengine.h
index e26171a44..b477da027 100644
--- a/src/client/renderingengine.h
+++ b/src/client/renderingengine.h
@@ -46,9 +46,7 @@ class RenderingCore;
class RenderingEngine
{
public:
- /// Default color factor before applying effects like bloom or tomemapping
- /// this is derived from tonemapping code and tuned empirically
- static constexpr float DEFAULT_EXPOSURE_FACTOR = 2.5f;
+ static const float BASE_BLOOM_STRENGTH;
RenderingEngine(IEventReceiver *eventReceiver);
~RenderingEngine();