Oxygen Engine
Modern C++ 3D Engine using OpenGL
Loading...
Searching...
No Matches
blur_manager.h
1#ifndef OE_RENDER_PIPELINE_BLURMANAGER
2#define OE_RENDER_PIPELINE_BLURMANAGER
3
4#include "../pipeline.h"
5#include "../screen_quad.h"
6
8{
15 {
16 public:
17 BlurManager(Pipeline& pipeline, const glm::ivec2& dimensions, int size = 7, float sigma = 3);
18
24 void blur(Framebuffer& source, oe::render::Framebuffer& target, const bool resize_viewport = true);
25
26 private:
27 std::shared_ptr<oe::render::Framebuffer> _blur_framebuffer;
28 std::shared_ptr<Shader> _shader;
29
30 std::shared_ptr<ScreenQuad> _screen_quad;
31 };
32}
33
34#endif
Definition framebuffer.h:43
Definition pipeline.h:19
Helper to blur pipeline passes.
Definition blur_manager.h:15
void blur(Framebuffer &source, oe::render::Framebuffer &target, const bool resize_viewport=true)
blur the framebuffer and store in target
Predefined Pass and helpers for the Pipeline.
Definition blur_manager.h:8