Skip to content
/ raytracer Public

Simple raytracer written in Rust. Based on "Ray Tracing in One Weekend" by Peter Shirley

Notifications You must be signed in to change notification settings

JJag/raytracer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

Simple raytracer written in Rust. Based on "Ray Tracing in One Weekend" by Peter Shirley

Running the code

Easiest way to run is via cargo run command:

cargo run --release $WIDTH $HEIGHT $RAYS_PER_PIXEL > image.ppm

Alternatively you can use imgcat to display images directly in your terminal:

cargo run --release $WIDTH $HEIGHT $RAYS_PER_PIXEL | imgcat

Example images

image 1 image 2

About

Simple raytracer written in Rust. Based on "Ray Tracing in One Weekend" by Peter Shirley

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages