Files
dotfiles/hypr/grayscale.glsl
Nikolai Papin 61d38cec16 fix: grayscale shader;
refactor: hyprlock;
refactor: played around with blur a little bit
2025-10-01 02:15:36 +03:00

15 lines
381 B
GLSL

#version 320 es
precision mediump float;
in vec2 v_texcoord; // Use 'in' instead of 'varying'
uniform sampler2D tex;
out vec4 fragColor; // Use 'out' instead of 'gl_FragColor'
void main() {
vec4 this_colour = texture(tex, v_texcoord);
float new_colour = (this_colour.r + this_colour.g + this_colour.b) / 3.0;
fragColor = vec4(new_colour, new_colour, new_colour, 1.0);
}