漂浮尘埃
缓慢漂浮、随踩镲闪烁的尘埃。
GLSL 源码
// One dust mote per cell drifts round a circle once every 16 beats (seamless). Highs grow its size.
vec2 prim(vec2 uv) {
vec2 g = asp(uv) * uParams.x;
vec2 cell = floor(g);
float l = 0.0;
for (int j = -1; j <= 1; j++) {
for (int i = -1; i <= 1; i++) {
vec2 c = cell + vec2(float(i), float(j));
float h = h21(c + uSeed * 17.0);
if (h < 0.35) continue;
float ph = TAU * (uBeat / 16.0 + h);
vec2 pos = c + 0.5 + 0.38 * vec2(sin(ph), cos(ph * 1.0 + h * 4.0));
float size = (0.04 + 0.05 * h21(c * 1.7)) * (1.0 + uHigh * 1.4) * uParams.y;
l += smoothstep(size, 0.0, length(g - pos)) * (0.4 + 0.6 * h);
}
}
l = min(l, 1.0);
return vec2(l, l);
}
一个使用通用 uniform 约定(uBeat · uBass · uKick …)的 vec2 prim(vec2 uv) 函数,只输出 luma 与 alpha。
相似循环
正弦编织
几何图案 · 交织流动的正弦曲线,中频使振幅变大。
Polyhaven Wood Inlaid Concrete Wall
纹理 · Wood Inlaid Concrete Wall
Ambientcg Tiles 074
纹理 · Tiles 074
Ai Flipping Hex Wave
序列 · 几何 · Precise white honeycomb grid rippling with flipping hexagons on black.
液态团块
背景场 · 融合又分离的元球,随低频膨胀。
Ai Rippling Caustic Floor
序列 · 光与激光 · Bright web-like caustic filaments ripple across a dark floor with soft...