48 vec3 a = vec3(0.6, 0.15, 0.02);
49 vec3 b = vec3(0.4, 0.25, 0.08);
50 vec3 c = vec3(1.0, 0.8, 0.4);
51 vec3 d = vec3(0.0, 0.15, 0.25);
52 return a + b * cos(6.28318 * (c * t + d));
72 vec2 u = f * f * (3.0 - 2.0 * f);
73 return mix(mix(
hash(i),
hash(i + vec2(1.0, 0.0)), u.x),
74 mix(
hash(i + vec2(0.0, 1.0)),
hash(i + vec2(1.0, 1.0)), u.x), u.y);
81 float bass = texture(
spectrum, 0.04).r;
82 float mid = texture(
spectrum, 0.22).r;
83 float hiMid = texture(
spectrum, 0.40).r;
84 float treble = texture(
spectrum, 0.58).r;
85 float air = texture(
spectrum, 0.80).r;
87 vec2 uv = tc * 2.0 - 1.0;
91 float angle = atan(uv.y, uv.x);
94 float heatNoise =
noise(uv * 8.0 + vec2(0.0, -
time_f * 3.0));
95 vec2 heatWarp = vec2(heatNoise - 0.5, heatNoise - 0.5) * (0.02 + mid * 0.04);
98 float ripple = sin(angle * 8.0 +
time_f) * (0.03 + bass * 0.05);
99 ripple += sin(r * 15.0 -
time_f * 4.0) * (0.02 + treble * 0.03);
102 float shift =
ripple * 0.3 + air * 0.01;
103 vec2 warpedTC = tc + heatWarp;
105 baseTex.r = texture(samp, warpedTC + vec2(shift, 0.0)).r;
106 baseTex.g = texture(samp, warpedTC).g;
107 baseTex.b = texture(samp, warpedTC - vec2(shift, 0.0)).b;
110 vec2 grid = floor(uv * 15.0);
111 float particle =
hash(grid + floor(
time_f * 2.0));
112 float isEmber = step(0.92 - bass * 0.1, particle);
113 vec2
cell = fract(uv * 15.0) - 0.5;
114 float emberGlow = isEmber * exp(-length(
cell) * 8.0);
117 vec3 emberColor =
ember(particle +
time_f * 0.5 + bass);
118 vec3 particles = emberColor * emberGlow * (3.0 + hiMid * 4.0);
126 float center = exp(-r * max(lightRadius, 0.5));
127 vec3 coreGlow = vec3(1.0, 0.85, 0.6) * center * (1.5 +
amp_peak * 2.5);
129 vec3 finalColor = baseTex + metalWave + particles + coreGlow;
130 finalColor +=
ripple *
wave * (1.0 + bass * 2.0);
132 color = vec4(finalColor, 1.0);