diff --git a/engine/include/cubos/engine/renderer/plugin.hpp b/engine/include/cubos/engine/renderer/plugin.hpp index 0d95e19eb..bf90d9579 100644 --- a/engine/include/cubos/engine/renderer/plugin.hpp +++ b/engine/include/cubos/engine/renderer/plugin.hpp @@ -35,6 +35,7 @@ namespace cubos::engine /// /// ## Settings /// - `cubos.renderer.ssao.enabled` - whether SSAO is enabled. + /// - `cubos.renderer.bloom.enabled` - whether bloom is enabled. /// /// ## Resources /// - @ref Renderer - handle to the renderer. diff --git a/engine/src/cubos/engine/renderer/plugin.cpp b/engine/src/cubos/engine/renderer/plugin.cpp index f78583903..3d4ba25e9 100644 --- a/engine/src/cubos/engine/renderer/plugin.cpp +++ b/engine/src/cubos/engine/renderer/plugin.cpp @@ -28,7 +28,11 @@ static void init(Write renderer, Read window, Write { auto& renderDevice = (*window)->renderDevice(); *renderer = std::make_shared(renderDevice, (*window)->framebufferSize(), *settings); - (*renderer)->pps().addPass(); + + if (settings->getBool("cubos.renderer.bloom.enabled", false)) + { + (*renderer)->pps().addPass(); + } } static void resize(Write renderer, EventReader evs)