0.00 s
Press play to see the audio moving the shader.
Shader

Creating the shader viewer

This was my example to see if could get audio input into the shader viewer.
AuthorDARC SECTOR
LanguageGLSL (MNodes format)
Added8 Oct 2026
Views56

Free to use for anything. No credit needed.

No ratings yet

Log in to rate this shader.

Code 32 lines

float spec(float x) { return texture(iChannel0, vec2(x, 0.25)).x; }

void mainImage(out vec4 fragColor, in vec2 fragCoord)
{
    vec2 uv = (2.0 * fragCoord - iResolution.xy) / min(iResolution.x, iResolution.y);

    float bass = (spec(0.01) + spec(0.03) + spec(0.05) + spec(0.08)) * 0.25;
    float high = (spec(0.35) + spec(0.5) + spec(0.65) + spec(0.8)) * 0.25;

    float amount = 0.5 + 1.5 * P3;
    float size = 0.25 + 0.35 * P2 + bass * 0.35 * amount;


    float a = P4 * (iTime * 0.5 + bass * 1.5);
    uv = mat2(cos(a), -sin(a), sin(a), cos(a)) * uv;

    vec2 q = abs(uv) - vec2(size);
    float d = length(max(q, 0.0)) + min(max(q.x, q.y), 0.0);

    vec3 colour = 0.5 + 0.5 * cos(6.28318 * (P1 + vec3(0.0, 0.33, 0.67)));

    float fill = smoothstep(0.005, -0.005, d);
    float edge = exp(-abs(d) * 60.0);
    float glow = exp(-max(d, 0.0) * (12.0 - 6.0 * high * amount)) * (0.25 + high * amount);

    vec3 col = colour * fill * (0.35 + 0.65 * bass * amount);
    col += mix(colour, vec3(1.0), 0.5) * edge * (0.4 + 1.2 * high * amount);
    col += colour * glow * (1.0 - fill);

    fragColor = vec4(col, 1.0);
}

Made for MNodes: paste it in a Shader Code node and wire it to a Shader or Scene. The P values are the sliders above the code.

Comments

No comments yet.

← Back to shaders