56 float bass = texture(
spectrum, 0.04).r;
57 float mid = texture(
spectrum, 0.22).r;
58 float treble = texture(
spectrum, 0.58).r;
59 float air = texture(
spectrum, 0.80).r;
61 vec2 uv = tc * 2.0 - 1.0;
65 float angle = atan(uv.y, uv.x);
70 warp += sin(
warp.yx * (5.0 + mid * 8.0) +
time_f) * (0.05 + treble * 0.04);
73 vec2 sampUV =
warp * 0.5 + 0.5;
76 float chroma = 0.01 + air * 0.03 +
amp_peak * 0.02;
78 baseTex.r = texture(samp, sampUV + vec2(chroma, 0.0)).r;
79 baseTex.g = texture(samp, sampUV).g;
80 baseTex.b = texture(samp, sampUV - vec2(chroma, 0.0)).b;
83 float luma = dot(baseTex, vec3(0.299, 0.587, 0.114));
84 vec3
chrome = mix(vec3(
luma), baseTex, 0.3 + mid * 0.4);
88 float edge = abs(sin(r * (15.0 + bass * 10.0) -
time_f * 3.0));
94 float center = exp(-r * max(lightRadius, 0.5));
95 vec3 coreGlow = vec3(1.0, 0.98, 0.95) * center * (1.5 +
amp_peak * 2.0);
97 vec3 finalColor =
chrome + coreGlow;
100 color = vec4(finalColor, 1.0);