summaryrefslogtreecommitdiff
path: root/src/render/Shader.hpp
diff options
context:
space:
mode:
authorVisual-Dawg <imchris@tuta.io>2023-11-06 20:49:03 +0200
committerGitHub <noreply@github.com>2023-11-06 18:49:03 +0000
commit29e0a7112ef5c412e4af640b9d80f80b81a26c94 (patch)
treec2f2c6ef819940d04508738d6a13b439debbe96a /src/render/Shader.hpp
parenta1b7a5a53d66d6289f1a3036d1aa4daa965c363c (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.hpp18
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;