remove hyprland from config
This commit is contained in:
parent
c3a4fc2bb2
commit
3c0896e976
24 changed files with 235 additions and 1134 deletions
34
modules/automapaper/state-game_of_life.glsl
Normal file
34
modules/automapaper/state-game_of_life.glsl
Normal 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);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue