gpu-curtains: A WebGPU 3D Engine That Syncs Shaders to Your DOM

Martin Laxenaire rebuilt his DOM-to-shader library for WebGPU, and this time it's a full 3D engine. Lights, shadows, compute shaders, glTF support, and the same trick that made curtains.js useful: your HTML elements become shader geometry that scrolls and resizes like native DOM.

0:00
/1:50

A WebGPU-rendered page where HTML image and video elements are mapped to 3D shader planes that respond to scroll position, showing displacement and texture effects synchronized with CSS layout.