Skip to content

Latest commit

 

History

History
11 lines (8 loc) · 925 Bytes

README.md

File metadata and controls

11 lines (8 loc) · 925 Bytes

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.