Most "Vibe Coding" demos either import massive frameworks and pre-made .glb packs, or stop at v1 when the scene looks like a shiny plastic prototype.
I wanted to see what happens when you put Gemini 4 Neon under brutal constraints and iterate 5 straight rounds using sharp visual and engineering critiques instead of polite wishes:
- Zero Three.js / zero frameworks — pure native WebGL2
- Zero external textures or
.glbmodels — 100% procedural geometry & GLSL ES 3.00 shaders (104,704 triangles across a380m × 400mworld) - Zero audio files — synthesized in-browser via Web Audio API
What Changed Across 5 Iterations
- v1 → v2: Started with 2002-era plastic shading and camera wall-clipping, then moved to cleaner geometry that still looked like a generic PS3 hillside.
- v3 (The Turning Point): Stopped asking for "make it prettier" and switched to surgical critiques targeting shader ink-wash falloff, rice-paper grain, silhouette framing, and depth fog.
- v4: Expanded into 4 mythic Shan Hai Jing realms × 7 animated creatures — a 70m 56-ring winged Yinglong dragon at Mount Buzhou, twin celestial Kuns in Penglai Gorge, vermilion phoenixes, plus hidden Moonlit Gold (
幽冥青燈) and Sumi-e Cinnabar (墨韻丹砂) shader modes. - v5: Caught a hilarious bug where the Nine-Tailed Spirit Fox faced away from the camera across the entire 360° orbit—fixed orientation and golden night-glow eyes in 3 minutes.
Verify It Live in Your Browser (Instant Split-Curtain Wireframe X-Ray)
To prove it's real-time geometry rather than pre-rendered video, I built a live split-curtain X-Ray toggle that peels the Song-Dynasty ink painting back to expose all 104,704 wireframe triangles:
- Split-Curtain Painting ↔ 104,704-Tri Wireframe X-Ray: https://tbpfs.github.io/shan-hai-scroll-3d/?enter=1&curtain=0.5
- Main Interactive Scroll (
潑彩青綠): https://tbpfs.github.io/shan-hai-scroll-3d/ - Moonlit Dragon Gate (
幽冥青燈Night Mode): https://tbpfs.github.io/shan-hai-scroll-3d/?enter=1&mode=dragon&style=night - Sumi-e & Cinnabar Mode (
墨韻丹砂): https://tbpfs.github.io/shan-hai-scroll-3d/?enter=1&style=mono
Full Making-Of Video & MIT Source Code
- Watch the 5-Round Making-Of Video (YouTube, 3:30): https://youtu.be/7JJhwuBtrCM
- MIT Open-Source Repo (GitHub): https://github.com/tbpfs/shan-hai-scroll-3d
- More Zero-Dependency Web Projects & Free CS/AI Engineering Books: https://ai-purplemaple.com/ | https://ai-purplemaple.com/learn/
Curious how other devs structure multi-round visual critique prompts when pushing models on raw WebGL / GLSL—drop your favorite debugging tricks below!