mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-06 02:00:46 +00:00
Clicking a card now also detonates a local displacement wave at the exact click point in the card's own UV space: a soft gaussian ring (the blurred-circle-drives-displacement compositing pattern, evaluated inline in the fragment shader) pushes the texture radially outward as it grows from the click point past the card edges and dies. Up to four punches stack per card via a vec4 uniform array; only the clicked card carries them — all other cards ignore the effect entirely. Click coordinates map through the displayed (boost-included) size at click time, and the ring radius/width scale with the live card size so a boost mid-punch stays coherent. Knobs: Punch amp px / dur / width. Claude-Session: https://claude.ai/code/session_01YBoaBEt3gynzTwogBFtn4B