Skip to content

ar90n/comptime-ray-tracing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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