0.0.6 • Published 10 months ago
@webgpu-art/caterfoil v0.0.6
Caterfoil - 4D objects rendering on 2D screen
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.
License
MIT