From 29e0a7112ef5c412e4af640b9d80f80b81a26c94 Mon Sep 17 00:00:00 2001 From: Visual-Dawg Date: Mon, 6 Nov 2023 20:49:03 +0200 Subject: renderer: added new customization options to the blur shaders (#3650) Adds to `decoration:blur:` `vibrancy` and `vibrancy_darkness` --- src/render/Shader.hpp | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'src/render/Shader.hpp') 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 m_muUniforms; -- cgit v1.2.3