/ray-tracer

Simple ray tracer in rust

Primary LanguageRust

Ray Tracer

Yet another simple ray tracing implementation in Rust, based on Peter Shirley's ray tracing in one weekend book.

img

Build and Run

rust must be installed.

git clone https://github.com/metinUr/ray-tracer.git
cd ray-tracer
cargo run --release

Examples

Diffuse Material

img

cargo run --release --example ex_lambertian

Metal Material

img

cargo run --release --example ex_metal

Glass Material

img

cargo run --release --example ex_dielectric

Random Spheres

img

cargo run --release --example ex_random

or just run

cargo run --release