Skip to content

audio UV distortion

BLOKS Shader Bulletin Board

audio UV distortion

By RJ Shelton June 9, 2026

Shader Preview Unavailable

This realtime shader may be too intensive for your current device or browser.

Shader Code
void mainImage(out vec4 fragColor, in vec2 fragCoord)
{
    vec2 uv = fragCoord.xy / iResolution.xy;

    float fauxBass = 0.5 + 0.5 * sin(iTime * 2.5);
    fauxBass *= 0.6 + 0.4 * sin(iTime * 0.7);

    vec2 p = uv * 2.0 - 1.0;
    p.x *= iResolution.x / iResolution.y;

    uv += sin(uv.yx * 8.0 + iTime * 2.0) * fauxBass * 0.05;

    float d = length(p);
    float glow = 0.025 / max(d, 0.025);

    vec3 color = vec3(uv.x, uv.y, 1.0);
    color += vec3(0.1, 0.6, 1.0) * glow * fauxBass;

    fragColor = vec4(color, 1.0);
}

← Back to Shader Bulletin Board