Skip to content

Latest commit

 

History

History
67 lines (47 loc) · 1.08 KB

README.md

File metadata and controls

67 lines (47 loc) · 1.08 KB

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