Skip to content

Rust implementation of Peter Shirley's "Ray Tracing in One Weekend" Topics

Notifications You must be signed in to change notification settings

alexwheezy/ray-tracing-in-one-weekend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Ray tracing in one weekend, in Rust

Sansara

This image was rendered with the following settings:
Height: 720
Width: 1280
Samples per pixel: 500
Maximum depth: 50

This is an implementation in Rust of Peter Shirley's "Ray Tracing In One Weekend" book.

I know I'm not the first to reimplement code from this tutorial, but I tried to improve the modularity of this code a bit and make it more idiomatic for this language. Nevertheless, it was a useful experience. Not all commits strictly correspond to work stages.

You can simply clone git clone the repository to yourself and yourself and start rendering with a simple command: cargo run --release > spheres.ppm

TODO:

  • Ability to set render parameters from the command line.
  • Add lighting sources.
  • Add the ability to use textures.

About

Rust implementation of Peter Shirley's "Ray Tracing in One Weekend" Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages