# Shader Grid Gallery

**Group:** Galleries and grids  
**Recording:** [https://s4xw77gvirailb62.public.blob.vercel-storage.com/lab/shader-grid-gallery.mp4](https://s4xw77gvirailb62.public.blob.vercel-storage.com/lab/shader-grid-gallery.mp4)  
**Source:** [https://ui.aryank.space/components/shader-grid-gallery](https://ui.aryank.space/components/shader-grid-gallery)  
**Human:** https://blankinterfaces.com/lab/shader-grid-gallery

---

## What it is

An infinite, draggable grid of framed images rendered entirely in one fragment shader. A single full-screen plane tiles the projects into cells with borders, captions, and a lens-warped vignette; dragging pans the field with inertia and eases in a slight zoom, the cell under the pointer lifts, and a click that does not drag selects that project. Three.js with on-the-fly image and text atlases.

## Behaviour

### Everything in one draw

The whole gallery is a single plane and one fragment shader: cells, borders, images, and captions are all resolved per pixel from two atlases, so panning an infinite field costs one draw call rather than one mesh per tile.

### Barrel-warped picking

The same lens distortion applied in the shader is reproduced in JavaScript on click, so the cell you select matches the warped tile you actually see under the pointer instead of a flat projection.

---

[View all content](https://blankinterfaces.com/sitemap.md)
