This project is a Rust based Raytracer based on Peter Shirley's "Ray Tracing in One Weekend V1.55", which is centered around C++
This is purely educational and just a way for me to familiarize myself with Rust, wouldn't recommend including this in a product.
- Clone this repo
- cd raytracer
- cargo build
- Run the main app in 1 of 2 ways:
- cargo run
./target/debug/raytracer <args>
The app provides some command-line options should you want to alter the height/width
pfd@eigen2:~/projects/raytracer/raytracer$ ./target/debug/raytracer --help
Raytracer 0.1.0
Fil Dourado <fildourado91@gmail.com>
Simple Raytracer
USAGE:
raytracer [FLAGS] [OPTIONS] [SUBCOMMAND]
FLAGS:
--help Prints help information
-V, --version Prints version information
-v Sets the level of verbosity
OPTIONS:
-c, --config <FILE> Sets a custom config file
-h, --height <HEIGHT> Sets the height for the output window
-w, --width <WIDTH> Sets the width for the output window
SUBCOMMANDS:
help Prints this message or the help of the given subcommand(s)
test controls testing features
- Diffuse Materials
- Positionable Camera
- Defocus Blur