Related: I got a couple mails about raytracers in pure bash. It looks like they use fixed point arithmetic in bash rather than floating point, which works well:
http://www.oilshell.org/blog/2021/01/audio-and-graphics.html...
https://github.com/aneeshdurg/bash-raytracer
https://www.bouledef.eu/~tleguern/articles/shell-fixedpoint/