remove hyprland from config

This commit is contained in:
Noa Aarts 2024-11-19 22:49:29 +01:00
parent c3a4fc2bb2
commit 3c0896e976
Signed by: noa
GPG key ID: 1850932741EFF672
24 changed files with 235 additions and 1134 deletions

View file

@ -0,0 +1,34 @@
#version 310 es
precision highp float;
uniform sampler2D state;
uniform vec2 scale;
out vec4 stateColor;
vec4 get(int x, int y) {
return texture(state, (gl_FragCoord.xy + vec2(x, y)) / scale);
}
void main() {
int sum = int(get(-1, -1).r +
get(-1, 0).r +
get(-1, 1).r +
get(0, -1).r +
get(0, 1).r +
get(1, -1).r +
get(1, 0).r +
get(1, 1).r);
vec4 current = get(0, 0);
if (sum == 3) {
stateColor.r = 1.0;
stateColor.g = 1.0;
} else if (sum == 2) {
stateColor = current;
if (current.r == 0.0) {
stateColor.g = max(current.g - 0.01, 0.0);
}
} else {
stateColor = vec4(0.0, max(current.g - 0.01, 0.0), 0.0, 1.0);
}
}