Skip to content

Rust implementation of the book "Ray Tracing in One Weekend" by Peter Shirley

Notifications You must be signed in to change notification settings

ebkalderon/ray-tracing-in-one-weekend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ray Tracing in One Weekend

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

Picture of diffuse, metallic, and glass spheres

Features

This proof-of-concept ray tracer includes the following features:

Ray Tracing in One Weekend

  • Lambertian diffuse shading
  • Hemispherical scattering diffuse shading
  • Metallic materials
  • Dielectric materials, such as water and glass
  • Depth-of-field blur effects

Ray Tracing: The Next Week

  • Motion blur and moving objects
  • Bounding volume hierarchy (BVH) trees
  • Constant color and checkered texture mapping
  • Perlin noise texture mapping
  • Image texture mapping
  • Light sources and emissive materials
  • Model instancing

Features not from any particular book

  • Scene abstraction
  • Parallel scanline rendering and multisampling with rayon
  • Parallel BVH computation with rayon

The architecture is currently in the MVP (minimum viable product) state. Further features and improvements are forthcoming, some chosen from the "next steps" self-guided exercises and others from the book's seminal sequel Ray Tracing The Next Week.

About

Rust implementation of the book "Ray Tracing in One Weekend" by Peter Shirley

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published