Skip to content

sam-omalley/rust-raytracer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust Raytracer

A Rust implementation of Ray Tracing in One Weekend and Ray Tracing: The Next Week by Peter Shirley.

Parallelised with Rayon for multi-core rendering.

Screenshots

Final Scene Cornell Smoke
Cornell Box Simple Light
Perlin Checkered Spheres

Scenes

# Scene
1 Bouncing Spheres
2 Checkered Spheres
3 Earth
4 Perlin Spheres
5 Quads
6 Simple Light
7 Cornell Box
8 Cornell Smoke
9 Final Scene

Build

cargo build --release

Usage

Output is written as PPM to stdout.

./target/release/ray-tracer <scene> <quality> > output.ppm

Quality: low, med, high, final

About

Rust implementation of "Ray Tracing in One Weekend" and "The Next Week", parallelised with Rayon

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Contributors

Languages