logoalt Hacker News

articulatepangtoday at 3:05 PM2 repliesview on HN

I went through this a few months ago in Rust. I wrote all the code by hand, no LLMs. Then I went ahead and added a small "game" on top, plus some special effects like pixelization shaders and chromatic aberration at the edge of a flashlight.

https://github.com/kshitijl/tinyrenderer-rs

if anyone is interested! The repo has lots and lots of in-progress screenshots so you can see the renderer come to life, plus all the hilarious visual bugs along the way.

I learned a lot! My biggest lesson, other than the specifics of how rendering works, was that modern CPUs are really fast: a single-threaded CPU renderer can definitely run an interactive 3D game with some fancy special effects.


Replies

0x1ceb00datoday at 4:39 PM

Why does it pull in wgpu if it's a software renderer?

show 3 replies
njjsjsystoday at 8:00 PM

[dead]