This is a ray tracer written in Rust. It is based on the book Ray Tracing in One Weekend
- Rust
- Nothing else
- Maybe a powerful computer
cargo run --release
Then you can find the output image in output.ppm
, you may need a special software to open it. Fortunately, ubuntu image viewer can directly open this file and there is a vscode extension. If you want to change the output image size, you can change the WIDTH
and HEIGHT
constants (or anything else) in src/main.rs
.