Skip to content

A simple raytracer written in Rust, following raytracing.github.io

Notifications You must be signed in to change notification settings

novedevo/raytracer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

raytracer

A simple raytracer written in Rust, following raytracing.github.io

Complex raytraced scene, containing spheres of different materials, including glass, metal, and diffuse soft objects

The book and associated code is focused on C++, so implementing this in Rust was a total rewrite and uses entirely different paradigms in many places. Since I originally wrote this, versions of the book have been released in Rust; if you would like to repeat this journey they are a better pedagogical resource. I enjoyed the challenge. This also expands on the book in several ways, including multithreading, multiple scenes, and PNG export.

Rendering takes a while. This doesn't leverage the GPU, so if you're using the complex scene at a high resolution and sample rate, be prepared to wait ~10 minutes on a decent CPU.

About

A simple raytracer written in Rust, following raytracing.github.io

Resources

Stars

Watchers

Forks

Languages