Skip to content

andystanton/raytracer-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A multithreaded Ray Tracer in Rust

A multithreaded Rust implementation of the ray tracer from Peter Shirley's Ray Tracing in One Weekend.

Usage

The raytracer is a command line application that writes an image of a given scene to disk with specific parameters, and outputs the path of the image.

$ cargo run --release -- \
    --scene random \
    --nx 300 \
    --ny 200 \
    --samples-per-pixel 50

For a full list of commands and scenes, run:

$ cargo run --release -- --help

Screenshots

Random Scene Teapot Scene Another Random Scene Test Scene