Gaussian Blur pass.
More...
#include <GaussianBlur.hpp>
|
| | GaussianBlur (const int width, const int height) |
| | Argument constructor.
|
| |
| virtual | ~GaussianBlur ()=default |
| | Destructor.
|
| |
| void | resize (const int width, const int height) override |
| | Resize framebuffers.
|
| |
| unsigned int | render (const unsigned int input) override |
| | Render effect to input texture.
|
| |
| void | set_strength (const Strength strength) |
| | Set gaussian blur strength.
|
| |
| bool | is_enabled () override |
| | Is this effect enabled?
|
| |
| virtual | ~PostEffect ()=default |
| | Destructor.
|
| |
Gaussian Blur pass.
Run after Anti-Aliasing.
Definition at line 24 of file GaussianBlur.hpp.
◆ Strength
Pixel sample strength.
| Enumerator |
|---|
| LOW | 0 | Pixel sample of 5.
|
| NORMAL | 1 | Pixel sample of 9.
|
| STRONG | 2 | Pixel sample of 13.
|
Definition at line 30 of file GaussianBlur.hpp.
◆ GaussianBlur() [1/2]
| galaxy::graphics::GaussianBlur::GaussianBlur |
( |
const int | width, |
|
|
const int | height ) |
Argument constructor.
- Parameters
-
| width | Width of internal framebuffer. |
| height | Height of internal framebuffer. |
Definition at line 117 of file GaussianBlur.cpp.
◆ ~GaussianBlur()
| virtual galaxy::graphics::GaussianBlur::~GaussianBlur |
( |
| ) |
|
|
virtualdefault |
◆ GaussianBlur() [2/2]
| galaxy::graphics::GaussianBlur::GaussianBlur |
( |
| ) |
|
|
privatedelete |
◆ resize()
| void galaxy::graphics::GaussianBlur::resize |
( |
const int | width, |
|
|
const int | height ) |
|
overridevirtual |
◆ render()
| unsigned int galaxy::graphics::GaussianBlur::render |
( |
const unsigned int | input | ) |
|
|
nodiscardoverridevirtual |
Render effect to input texture.
- Parameters
-
| input | Input texture from previous effect or window framebuffer. |
- Returns
- Returns output texture for next effect or final framebuffer.
Implements galaxy::graphics::PostEffect.
Definition at line 137 of file GaussianBlur.cpp.
◆ set_strength()
| void galaxy::graphics::GaussianBlur::set_strength |
( |
const Strength | strength | ) |
|
Set gaussian blur strength.
- Parameters
-
| strength | Enum of strength values. |
Definition at line 157 of file GaussianBlur.cpp.
◆ is_enabled()
| bool galaxy::graphics::GaussianBlur::is_enabled |
( |
| ) |
|
|
nodiscardoverridevirtual |
◆ m_shader
| Shader galaxy::graphics::GaussianBlur::m_shader |
|
private |
◆ m_horizontal
◆ m_vertical
◆ m_strength
| Strength galaxy::graphics::GaussianBlur::m_strength |
|
private |
The documentation for this class was generated from the following files: