Demo (try with Gamepad) https://webgpu.art/caterfoil.ts/. By holding △
(face4) button, there are some controls to change w
direction.
Reused some code from https://github.com/WebGPU-Art/lagopus.ts .
4D objects to 2D projection is calculated with Geometric Algebra inner product. And -z
and w
directions is combined (-z+w)/√2
as depth direction of screen.
MIT