diff options
| author | Visual-Dawg <imchris@tuta.io> | 2023-11-06 20:49:03 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-06 18:49:03 +0000 |
| commit | 29e0a7112ef5c412e4af640b9d80f80b81a26c94 (patch) | |
| tree | c2f2c6ef819940d04508738d6a13b439debbe96a /src/render/Shader.hpp | |
| parent | a1b7a5a53d66d6289f1a3036d1aa4daa965c363c (diff) | |
renderer: added new customization options to the blur shaders (#3650)
Adds to `decoration:blur:` `vibrancy` and `vibrancy_darkness`
Diffstat (limited to 'src/render/Shader.hpp')
| -rw-r--r-- | src/render/Shader.hpp | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/src/render/Shader.hpp b/src/render/Shader.hpp index b67f61ef..70fe468c 100644 --- a/src/render/Shader.hpp +++ b/src/render/Shader.hpp @@ -46,13 +46,21 @@ class CShader { GLint distort = -1; GLint output = -1; - GLint noise = -1; - GLint contrast = -1; - GLint brightness = -1; + // Blur prepare + GLint contrast = -1; - GLint getUniformLocation(const std::string&); + // Blur + GLint passes = -1; // Used by `vibrancy` + GLint vibrancy = -1; + GLint vibrancy_darkness = -1; - void destroy(); + // Blur finish + GLint brightness = -1; + GLint noise = -1; + + GLint getUniformLocation(const std::string&); + + void destroy(); private: std::unordered_map<std::string, GLint> m_muUniforms; |
