Skip to content

Sarath18/raytracer_rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Raytracer

This is my implementation of the book Ray Tracing in One Weekend by Peter Shirley in Rust.

Final result

Image size: 1200 x 800 pixels Samples per pixel: 500

Dependencies

  • image "0.23.9"
  • rand "0.7.3"

Build

cargo build --release

Run

cargo run --release

The Process

First Image

First Image

Gradient Background

A Sphere

Surface Normals

Anti-aliasing

Diffuse

Lambertian Reflection

Materials

Metal

Fuzzy Metal

Refractive Material

Camera Position

Defocus Blur

The Final Render

About

My implementation of the book Ray Tracing in One Weekend in Rust

Resources

Stars

Watchers

Forks

Languages