Skip to content

stanleydesu/rust-raytracing

Repository files navigation

Ray Tracing in One Weekend (Rust)

Implementation of the great book Ray Tracing in One Weekend in Rust.

Fun easy way to pick up and learn Rust (was roughly my first attempt at Rust, so please ignore the bad style such as lazily deriving Copy instead of borrowing properly), especially due to visual outputs improving as the codebase develops.

Green spheresGreen spheres

Blue spheresBlue spheres

Final renderFinal render

Above images each took ~ 3 hours to render.

Multithreaded implementation in the multithreading branch, using Rayon.

Binaries of scenes throughout the book in src/examples; some don't compile due to the codebase evolving, but they can still serve as helpful examples.

About

Rust implementation of "Ray Tracing in One Weekend"

Topics

Resources

License

Stars

Watchers

Forks

Languages