
ShirtLab is a real-time 3D apparel customization engine built on React Three Fiber and WebGL. Design, texture, and export custom shirts directly in the browser โ no plugins, no installs, no compromises on performance.
Design in 3D. Export in seconds. Run anywhere.

How It Works
The app renders a photorealistic 3D shirt model in the browser using a full WebGL pipeline. Pick a color with the HSL picker and the shader updates instantly. Upload a logo or texture and it's projected onto the model via a dual-layer decal system with automatic UV mapping. Switch environments, adjust lighting, and download your design โ all client-side, all GPU-accelerated.
Features
- ๐จ Real-Time Material System โ HSL color space manipulation with instant PBR shader updates, configurable roughness and metalness
- ๐ผ๏ธ Dual-Layer Decal System โ Logo and full-texture modes with automatic UV mapping and depth sorting
- ๐ Custom Uploads โ Client-side FileReader API for instant texture preview with no server round-trip
- ๐ 18+ Textures & 20+ Logos โ Curated design library across procedural patterns and categorized vector graphics
- โก Optimized Rendering โ Selective re-renders via Valtio, texture caching, frustum culling, sub-500KB gzipped bundle
- ๐ฅ Smooth Camera โ Adaptive orbital rig with three-point lighting and configurable environment maps
Tech Stack
React 18 ยท Three.js ยท React Three Fiber ยท Valtio ยท Framer Motion ยท Tailwind CSS ยท Vite