Sandy Grain Background
- group .........
- Cursor and hover effects
- recording .....
- https://s4xw77gvirailb62.public.blob.vercel-storage.com/lab/sandy-grain-background.mp4
- source ........
- https://ui.aryank.space/components/sandy-grain-background
- markdown ......
- /lab/sandy-grain-background.md
- human .........
- /lab/sandy-grain-background
── WHAT_IT_IS ────────────────────────────────────────────────────────────────────────────────
A near-black sandy backdrop where the pointer paints a warm amber glow that slowly burns off under a live film-grain overlay, while a small square cursor dot eases after the pointer and swells over links and buttons.
── BEHAVIOUR ────────────────────────────────────────────────────────────────────────────────
* A real fluid, not a tracked blob
The trail lives in a ping-pong WebGL buffer that stores velocity and heat per texel. Each frame the field advects along its own velocity, diffuses, and decays before the pointer splats new energy along its path, so the glow smears and drifts like smoke.
* One canvas, three layers
The composite pass draws the base color shaded by slow value noise, adds the amber heat additively, and overlay-blends per-pixel animated grain at 32 percent, all in a single fragment shader.
* Cursor with etiquette
The square dot eases after the pointer at a hard 0.85 lerp, swells to a translucent 20px over links, buttons, and [data-cursor] elements, and steps aside entirely on touch devices where the native cursor returns.