FreeVJ FULL AUTO VJ LOOP

FreeVJ / Loop library / Shape

Laser Fan

A fan of stage lasers sweeping from below, punching on the kick.

Laser Fan
Play this loop live

Exports are made in this browser and saved directly.

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

☕ Buy me a coffee

FreeVJ is free. If you enjoy it, support the maker with a coffee's worth of USDT.

USDT · TRON (TRC20) TRC20 network only

TVg11kWumyqNpRU9HXKo8a8u2fa8sdJtKh

☕ 3 USDT☕☕ 5 USDT☕☕☕ 10 USDT

How to send with Binance
  1. Binance app: Wallet › Withdraw › USDT › paste the address (or scan the QR) › network TRC20 › amount › confirm. The address belongs to Binance, so it may go through as a free internal transfer.
  2. Other wallets and exchanges (Trust Wallet, OKX, Bybit …): send USDT on the TRC20 network to the same address. A self-custody wallet needs a little TRX for the fee.

Always send on the TRC20 network. USDT sent on another network is hard to recover.