FreeVJ / Loop library / Particle
Drift Dust
Slow drifting dust that sparkles with the hi-hats.
GLSL source
// One dust mote per cell drifts round a circle once every 16 beats (seamless). Highs grow its size.
vec2 prim(vec2 uv) {
vec2 g = asp(uv) * uParams.x;
vec2 cell = floor(g);
float l = 0.0;
for (int j = -1; j <= 1; j++) {
for (int i = -1; i <= 1; i++) {
vec2 c = cell + vec2(float(i), float(j));
float h = h21(c + uSeed * 17.0);
if (h < 0.35) continue;
float ph = TAU * (uBeat / 16.0 + h);
vec2 pos = c + 0.5 + 0.38 * vec2(sin(ph), cos(ph * 1.0 + h * 4.0));
float size = (0.04 + 0.05 * h21(c * 1.7)) * (1.0 + uHigh * 1.4) * uParams.y;
l += smoothstep(size, 0.0, length(g - pos)) * (0.4 + 0.6 * h);
}
}
l = min(l, 1.0);
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
Sine Weave
Pattern · Woven sine lines that swell with the mids.
Polyhaven Wood Inlaid Concrete Wall
Texture · Wood Inlaid Concrete Wall
Ambientcg Tiles 074
Texture · Tiles 074
Ai Flipping Hex Wave
Sequence · Geometric · Precise white honeycomb grid rippling with flipping hexagons on black.
Liquid Blobs
Field · Metaballs that merge and split, swelling with the bass.
Ai Rippling Caustic Floor
Sequence · Light & lasers · Bright web-like caustic filaments ripple across a dark floor with soft...