A CPU Rasterizer written in Zig during my free time for fun and to learn.
Checkout Computer Graphics from Scratch
section on: https://blackgoku36.github.io/BG36Notes/
If I remember correctly, I got spot model from: https://www.cs.cmu.edu/~kmcrane/Projects/ModelRepository/
Requirements:
- The submodules
- Sokol-shdc bin from here, and set ENV var to it. (to compile sokol side shader, in case you just want to run, you can comment out
line 15
frombuild.zig
as the shader is already compiled).
Just do:
zig build run -Drelease-fast
Some refs: