ar90n / comptime-ray-tracing

ray tracing in comptime

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

comptime-ray-tracing

This repository contains a straightforward implementation of a ray tracing algorithm, as detailed in 'Ray Tracing in One Weekend', utilizing the unique capabilities of Zig's comptime evaluation."

How to run

Rendering whole image at once.

$ zig build run > out.pgm

128 x 64 output image

Rendering line by line.

$ gen.sh > out.pgm

300 x 200 output image

See Also

About

ray tracing in comptime

License:Creative Commons Zero v1.0 Universal


Languages

Language:Zig 98.8%Language:Shell 1.2%