5 Rounds of Ruthless Vibe Coding on Gemini 4 Neon: A 104,704-Triangle Pure WebGL2 Ink-Wash World (No Three.js, No Textures)
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.00shaders (104,704 triangles across a 380m Γ 400m world) - 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):
- 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!
Comments
No comments yet. Start the discussion.