中心脉冲
每次底鼓都向外弹出的两个中心圆环。
GLSL 源码
// Two rings in the centre — they kick outward on every kick and breathe with the beat phase (1-beat cycle).
vec2 prim(vec2 uv) {
vec2 p = asp(uv);
float r = length(p);
float r1 = 0.17 + uKick * 0.09 * uParams.x + 0.01 * sin(uPhase * TAU);
float r2 = 0.29 + uKick * 0.04 * uParams.x;
float w = 0.006 * uParams.y;
float l = smoothstep(w * 1.8, 0.0, abs(r - r1)) + 0.6 * smoothstep(w, 0.0, abs(r - r2)) + 0.8 * smoothstep(0.012, 0.0, r);
l = min(l, 1.0);
return vec2(l, l);
}
一个使用通用 uniform 约定(uBeat · uBass · uKick …)的 vec2 prim(vec2 uv) 函数,只输出 luma 与 alpha。