FreeVJ / Loop library / Shape
Laser Fan
A fan of stage lasers sweeping from below, punching on the kick.
GLSL source
// A laser fan from the bottom centre of the stage. Sweeps left and right once every 8 beats and thickens on each kick.
vec2 prim(vec2 uv) {
vec2 p = vec2((uv.x - 0.5) * uResolution.x / uResolution.y, uv.y);
float beams = floor(uParams.x);
float sweep = sin(uBeat * TAU / 8.0) * uParams.y;
float ang = atan(p.x, p.y);
float dist = length(p);
float l = 0.0;
for (int i = 0; i < 24; i++) {
if (float(i) >= beams) break;
float g = (float(i) - (beams - 1.0) * 0.5) * 0.13 + sweep;
float w = 0.0025 + uKick * 0.006;
l += smoothstep(w, 0.0, abs(ang - g) * dist);
}
l = min(l, 1.0) * smoothstep(0.0, 0.08, dist);
return vec2(l, l);
}
One vec2 prim(vec2 uv) function using the shared uniform contract (uBeat · uBass · uKick …). It outputs luma and alpha only.
Similar loops
Kaleido Shards
Pattern · Rotating twelve-fold kaleidoscope shards that lengthen with the bass.
Tunnel Rings
Pattern · Rings rushing toward a vanishing point, thickening on every kick.
Spectrum Bars
Pattern · An equaliser of bars: lows on the left, mids in the middle, highs on t...
Voronoi Cells
Pattern · Living cell walls that drift and thicken with the mids.
Retro Grid
Pattern · A synthwave floor grid rolling toward you one row per beat.
Center Pulse
Shape · Two centred rings that punch outward on each kick.