yhamdoud/rtiow
A Zig implementation of Ray Tracing in One Weekend.
This is a Zig implementation of Ray Tracing in One Weekend by Peter Shirley. The structure of the path tracer roughly follows the book, using idiomatic Zig constructs when possible. Notably, the usage of runtime polymorphism in the material system is substituted with tagged unions.
Some other additions of my own include rendering the results to a window using OpenGL and multithreading.
$ zig build run -Drelease-fast=true