Lego Dither
- group .........
- 3D and WebGL scenes
- source ........
- https://ui.aryank.space/components/lego-dither
- markdown ......
- /lab/lego-dither.md
- human .........
- /lab/lego-dither
── WHAT_IT_IS ────────────────────────────────────────────────────────────────────────────────
A spinning 3D marble hand rebuilt from a six-frame Lego stud sprite sheet. The hand renders into a luminance buffer, a fullscreen shader selects one colored stud per cell, and pointer movement rotates the model while painting a fading, warping trail through the same dither field. A self-contained Three.js interpretation of DEEO Studio's 3D Lego Dither artifact.
── BEHAVIOUR ────────────────────────────────────────────────────────────────────────────────
* The model is only a light field
The GLB never reaches the screen directly. It renders in white against black so the final shader can turn its light and shade into six discrete Lego colors.
* One sprite, six luminance steps
Each screen cell samples the hand once, chooses one of six 48-pixel stud glyphs, then draws that glyph at native hard edges. The white background is the darkest source level, not a CSS backdrop.
* The pointer enters before dithering
Pointer motion updates a fading canvas trail. Its gradient warps the hand sample and its intensity lifts nearby cells, so the cursor leaves real Lego marks instead of an overlay.