Simple ray tracing renderer written in zig. Followed Ray Tracing in One Weekend
Most of the code is based on the 4.0 version of the tutorial.
zig build --release=fast run >> image.ppm
If you are using Nushell, you can use the following command.
zig build --release=fast run out> image.ppm
Working good on zig 0.13.0. It can run on both Windows and Linux.
The time taken to render an image is too long! There might still be room for performance optimization.
If you find the program running too slow, you can change cam.samples_per_pixel = 500;
in src/main.zig to cam.samples_per_pixel = 10;
. This will allow you to quickly render an image.
MIT
Feel free communicate with me in any way.