Skip to content

srikarboga/rayzig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ray tracing in one weekend in zig

Reference: https://raytracing.github.io/books/RayTracingInOneWeekend.html

Zig version: 0.13.0

To use this project

git clone https://github.com/srikarboga/rayzig.git
cd rayzig
zig run main.zig > out.ppm

It takes about 10 mins to render with a ryzen 5900x cpu with the default settings which can be changed in camera.zig . After which you can view the image in a ppm viewer of your choice. If you have the kitty terminal you can use kitten icat out.ppm to view it.


image


The code for this project could use a lot of improvements since it was my first project in this language. Goals for the future are to refactor and clean up the code and add multithreading.

About

Ray tracing in one weekend in zig.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages