WebGL viewer

Scene graph, culling, and a binary draw-command stream computed in Zig/wasm.

  • two canvases driven by ONE stateful chunk (the 0x1000 rule)
  • vmesh + prefiltered .venv assets fetched via gl_load
  • Cook-Torrance PBR under image-based lighting

Guide: WebGL

verve.gl

Rotating unlit cube — scene graph, culling state, and a binary draw-command stream all computed in Zig/wasm; JS is a dumb WebGL2 interpreter over linear memory.

Unlit cube

Asset pipeline — PBR + image-based lighting

vmesh + prefiltered .venv fetched via gl_load; readers parse views; Cook-Torrance PBR under image-based lighting with direct lights.