Skip to content

Latest commit

 

History

History
21 lines (13 loc) · 652 Bytes

README.md

File metadata and controls

21 lines (13 loc) · 652 Bytes

Ray Tracer In Rust

This is a ray tracer written in Rust. It is based on the book Ray Tracing in One Weekend

Dependencies

  • Rust
  • Nothing else
  • Maybe a powerful computer

Usage

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.

Output

output