GammaCorrection effect.
More...
#include <GammaCorrection.hpp>
|
| | GammaCorrection (const int width, const int height) |
| | Argument constructor.
|
| |
| virtual | ~GammaCorrection ()=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_gamma (const float gamma_mod) |
| | Set gamma modifier.
|
| |
| float | get_gamma () const |
| | Get gamma modifier.
|
| |
| bool | is_enabled () override |
| | Is this effect enabled?
|
| |
| virtual | ~PostEffect ()=default |
| | Destructor.
|
| |
GammaCorrection effect.
Run after Anti-Aliasing.
Definition at line 24 of file GammaCorrection.hpp.
◆ GammaCorrection() [1/2]
| galaxy::graphics::GammaCorrection::GammaCorrection |
( |
const int | width, |
|
|
const int | height ) |
Argument constructor.
- Parameters
-
| width | Width of internal framebuffer. |
| height | Height of internal framebuffer. |
Definition at line 83 of file GammaCorrection.cpp.
◆ ~GammaCorrection()
| virtual galaxy::graphics::GammaCorrection::~GammaCorrection |
( |
| ) |
|
|
virtualdefault |
◆ GammaCorrection() [2/2]
| galaxy::graphics::GammaCorrection::GammaCorrection |
( |
| ) |
|
|
privatedelete |
◆ resize()
| void galaxy::graphics::GammaCorrection::resize |
( |
const int | width, |
|
|
const int | height ) |
|
overridevirtual |
◆ render()
| unsigned int galaxy::graphics::GammaCorrection::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 101 of file GammaCorrection.cpp.
◆ set_gamma()
| void galaxy::graphics::GammaCorrection::set_gamma |
( |
const float | gamma_mod | ) |
|
Set gamma modifier.
- Parameters
-
| gamma_mod | You will need to lookup or tinker with value. The value will be used in the formula: 1.0 / amount. 0 defaults to 1.0. |
Definition at line 113 of file GammaCorrection.cpp.
◆ get_gamma()
| float galaxy::graphics::GammaCorrection::get_gamma |
( |
| ) |
const |
|
nodiscard |
◆ is_enabled()
| bool galaxy::graphics::GammaCorrection::is_enabled |
( |
| ) |
|
|
nodiscardoverridevirtual |
◆ m_shader
| Shader galaxy::graphics::GammaCorrection::m_shader |
|
private |
◆ m_fb
◆ m_gamma
| float galaxy::graphics::GammaCorrection::m_gamma |
|
private |
The documentation for this class was generated from the following files: