3 ms·
Highly recommend doing software renderer stuff like this for fun. Raytracers are a popular sort of project but this sort of retro realtime rendering code makes
by namuol 2y ago
Highly recommend doing software renderer stuff like this for fun. Raytracers are a popular sort of project but this sort of retro realtime rendering code makes for a great weekend project too. I implemented basically the same algorithm ages ago (actually I ported some SDL code as an exercise to learn canvas2d): http://namuol.github.io/earf-html5/ http://namuol.github.io/earf-html5/
Obviously the linked implementation is way more performant and far simpler than mine, so if you’re looking for a reference I wouldn’t recommend my old coffeescript code…