Sarath18 / raytracer_rust

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:Rust 100.0%