Rendu
A lightweight rendering engine for experimentations
Loading...
Searching...
No Matches
BoxBlur.hpp
1#pragma once
2
3#include "resources/Texture.hpp"
4#include "graphics/Program.hpp"
5#include "Common.hpp"
6
12class BoxBlur {
13
14public:
20 BoxBlur(bool approximate, const std::string & name);
21
28 void process(const Texture & src, Texture & dst);
29
30private:
31
37 void resize(uint width, uint height);
38
44};
Applies a box blur of fixed radius 2. Correspond to uniformly averaging values over a 5x5 square wind...
Definition: BoxBlur.hpp:12
Texture _intermediate
Intermediate texture.
Definition: BoxBlur.hpp:43
void process(const Texture &src, Texture &dst)
Definition: BoxBlur.cpp:17
void resize(uint width, uint height)
Definition: BoxBlur.cpp:93
Program * _blurArray
Box blur program.
Definition: BoxBlur.hpp:40
Program * _blurCube
Box blur program.
Definition: BoxBlur.hpp:41
Program * _blurCubeArray
Box blur program.
Definition: BoxBlur.hpp:42
Program * _blur2D
Box blur program.
Definition: BoxBlur.hpp:39
Represents a group of shaders used for rendering.
Definition: Program.hpp:31
Represents a texture containing one or more images, stored on the CPU and/or GPU.
Definition: Texture.hpp:12