aboutsummaryrefslogtreecommitdiff
path: root/env/.config/cava/shaders/northern_lights.frag
diff options
context:
space:
mode:
authoriceyrazor <iceyrazor@mailfence.com>2026-10-23 23:48:32 -0500
committericeyrazor <iceyrazor@mailfence.com>2026-10-23 23:48:32 -0500
commit513ddbd8cee63cd8b09086d343a99123d782c940 (patch)
tree223e8c7d8240d015118b96dccdc221e07a82606e /env/.config/cava/shaders/northern_lights.frag
parent95b3608c70e96f72a01a6115219e3e0496d70785 (diff)
Squashed commit of the following:HEADmain
lessons loop change added tld to newsboat changed mimes manpager is using mktemp now added paste bind. so autoindent dont indent clipboard vis. made file browser not close vis on cancel added telemetry disable line to lua updated README.me removed nitrogen and swaybg. wallpaper is now set with setwll removed cava from backup fixed way alias removed cava shaders
Diffstat (limited to 'env/.config/cava/shaders/northern_lights.frag')
-rw-r--r--env/.config/cava/shaders/northern_lights.frag34
1 files changed, 0 insertions, 34 deletions
diff --git a/env/.config/cava/shaders/northern_lights.frag b/env/.config/cava/shaders/northern_lights.frag
deleted file mode 100644
index ecd859a..0000000
--- a/env/.config/cava/shaders/northern_lights.frag
+++ /dev/null
@@ -1,34 +0,0 @@
-#version 330
-
-in vec2 fragCoord;
-out vec4 fragColor;
-
-// bar values. defaults to left channels first (low to high), then right (high to low).
-uniform float bars[512];
-
-uniform int bars_count; // number of bars (left + right) (configurable)
-
-uniform vec3 u_resolution; // window resolution, not used here
-
-//colors, configurable in cava config file
-uniform vec3 bg_color; // background color(r,g,b) (0.0 - 1.0), not used here
-uniform vec3 fg_color; // foreground color, not used here
-
-void main()
-{
- // find which bar to use based on where we are on the x axis
- int bar = int(bars_count * fragCoord.x);
-
- float bar_y = 1.0 - abs((fragCoord.y - 0.5)) * 2.0;
- float y = (bars[bar]) * bar_y;
-
- float bar_x = (fragCoord.x - float(bar) / float(bars_count)) * bars_count;
- float bar_r = 1.0 - abs((bar_x - 0.5)) * 2;
-
- bar_r = bar_r * bar_r * 2;
-
- // set color
- fragColor.r = fg_color.x * y * bar_r;
- fragColor.g = fg_color.y * y * bar_r;
- fragColor.b = fg_color.z * y * bar_r;
-}