kami-solar-helix-scene — guest-driven 3D render

A compiled .kotoba guest (demo_solar_helix.kotoba) computes all 9 bodies' positions (Sun + 8 planets, sqrt-scaled orbit radii, real cos/sin host-imports for the orbital angle) and calls gpu-set-position once per body, then gpu-draw-frame once. All matrix/camera/pipeline/mesh work stays host-side (src-cljs/kotoba/solar_render_host.cljs); the guest only decides where each sphere goes. main is a 0-arity, single-frame function — this page drives the animation itself, calling instance.exports.main() again every requestAnimationFrame tick; each call the guest reads a host-owned, already-wrapped simulated day count (now-days) instead of a fixed t. See ADR-2607078000 Track B Phase 1 and its follow-up addendum.

loading...