A Raytracer written in pure Rust. Mostly based on "Raytracing in a weekend" from Peter Shirley. Added support for multithreading and improved speed a little.
In main.rs search for the creation of spheres, you have three possible materials for usage:
- Lambertian
- Metal
- Dielectric
Adapt the spheres or add new ones if you like.
Run with
cargo run --release
The point in writing another Raytracer for me was to check out the cgmath crate.
Here are some sample pictures: