From ASCII to ASIC: Porting donut.c to a tiny slice of silicon
Jan 10, 2025
For many years after coming up with
donut.c, I wondered in the back of my
mind if it could be simplified somehow, like maybe there was a way to raytrace a
donut with a small chunk of code. In October 2023, I tweeted
a dumb random epiphany where I
figured out another way to do it which requires no memory, no sines or cosines,
no square roots, no divisions, and technically, not even any multiplications. The
whole thing can be rendered with just shifts and adds, and there's an updated ...
Read more at a1k0n.net