https://github.com/mwcz/rust-raytracer-weekend
My Rust implementation of Ray Tracing in One Weekend by Peter Shirley.
https://github.com/mwcz/rust-raytracer-weekend
ray-tracer rust
Last synced: 29 days ago
JSON representation
My Rust implementation of Ray Tracing in One Weekend by Peter Shirley.
- Host: GitHub
- URL: https://github.com/mwcz/rust-raytracer-weekend
- Owner: mwcz
- Created: 2021-02-11T03:11:17.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-03-29T03:36:25.000Z (about 2 years ago)
- Last Synced: 2025-04-22T11:52:33.207Z (about 1 month ago)
- Topics: ray-tracer, rust
- Language: Rust
- Homepage:
- Size: 7.67 MB
- Stars: 24
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Rust ray tracer
I'm learning [Rust](https://www.rust-lang.org/) and decided to tackle the classic [Ray Tracing in One Weekend](https://raytracing.github.io/) 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](https://ziglang.org/) 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](https://clayto.com/2021/02/shaking-off-the-rust-1-ray-tracing-in-one-weekend/)
- [Shaking Off the Rust 2: Ray Tracing in WebAssembly](https://clayto.com/2021/07/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!



















