rust-raytracer-weekend
rust-raytracer-weekend copied to clipboard
My Rust implementation of Ray Tracing in One Weekend by Peter Shirley.
Rust ray tracer
I'm learning Rust and decided to tackle the classic Ray Tracing in One Weekend project by Peter Shirley. All the algorithms and general code structure are from that book, just translated the examples from C++ into Rust. I haven't written a ray tracer before, but I hope to reimplement it in a few other languages after Rust, like Zig and the language I know best, JavaScript, just for a performance comparison.
It supports command-line and WebAssembly.
Blog posts
- Shaking Off the Rust 1: Ray Tracing in One Weekend
- Shaking Off the Rust 2: Ray Tracing in WebAssembly
Example renders
Here are some renders, some are to document subtle bugs, and some are just to celebrate first successful renders with new features!