Fix grid effect fragment shader for compatiblity with GLES 3.0 syntax (required since Hyprland 0.50.0)

This commit is contained in:
striped-bass
2025-10-17 22:32:40 -07:00
parent 146701c5c8
commit beffb0ddf0
2 changed files with 5 additions and 8 deletions

View File

@@ -1,10 +1,9 @@
//
// Example blue light filter shader.
//
#version 300 es
precision mediump float;
varying vec2 v_texcoord;
in vec2 v_texcoord;
uniform sampler2D tex;
out vec4 fragColor;
void main() {
vec4 pixColor = texture2D(tex, v_texcoord);
@@ -14,8 +13,6 @@ void main() {
pixColor[0] *= 0.97;
pixColor[1] *= 0.97;
pixColor[2] *= 0.97;
// pixColor = vec4(0.10980392156,0.10588235294 ,0.09411764705 ,1);
}
gl_FragColor = pixColor;
fragColor = pixColor;
}

View File

@@ -41,8 +41,8 @@ decoration {
range = 1
render_power = 1
offset =5 5
# screen_shader = $yorha/components/gridlines.frag
}
screen_shader = $yorha/components/gridlines.frag
}
plugin {