A simple ray tracer written in Rust. Instructions taken from Ray Tracing in One Weekend and translated from C++ to Rust.
Run cargo run > image.ppm
to create an output image called image.ppm
.
.ppm
files can be opened with GIMP or viewed online here for example.
Here's one example result:
Tests are run by the usual command cargo test
.