walecome / rtrs

"Ray Tracing in One Weekend" implementation in Rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"Ray Tracing in One Weekend" in Rust

Rust implementation of "Ray Tracing in One Weekend". All rendering is done on the CPU (using rayon internally), and will use all available cores.

Get the code and run things

git clone https://github.com/walecome/rtrs.git
cd rtrs
cargo run # Use `--release` for faster renders

Usage:

Usage: rtrs [OPTIONS]

Options:
      --samples-per-pixel <SAMPLES_PER_PIXEL>  [default: 500]
      --max-depth <MAX_DEPTH>                  [default: 50]
  -h, --help                                   Print help

Output image is written to /tmp/image.png: Result image

About

"Ray Tracing in One Weekend" implementation in Rust

License:MIT License


Languages

Language:Rust 100.0%