Skip to content

scherepiuk/ray-tracing-zig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ray tracing

Graphics library for generating 2D images from 3D scenes.

Current state

Rendering several illuminated spheres painted in different colors. The light might be blocked by other spheres, resulting in a shadow.

Run the following command to generate an image:

$ zig run src/main.zig -- src/scenes/spheres.json output

where:

src/scenes/spheres.json - manifest file that describes objects' placement on the scene

output - folder that will be created to store the resulting images (one image per camera)

Image rendered from camera-0

Image rendered from camera-1

Image rendered from camera-2

About

Ray tracing library written in Zig

Resources

Stars

Watchers

Forks

Contributors

Languages