mirror of
https://github.com/flickowoa/dotfiles.git
synced 2026-04-06 00:32:09 +02:00
Fix grid effect fragment shader for compatiblity with GLES 3.0 syntax (required since Hyprland 0.50.0)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user