cube.lisp → WebGL
Hello 3D: this cube is drawn by a Lisp program compiled to WebAssembly. The perspective projection and the rotation matrices are computed in Lisp every frame (4×4 matrix multiplication and all) and cross into WebGL across a boundary declared once in WIT — from which both the Lisp bindings and this page's one-line JavaScript ones are generated.
source · first step: webgl-triangle · next step: webgl-galaxy