Skip to content

mu-lambda/mu-lambda-raytracer

Repository files navigation

paypal

RayTracer

Implementation of a ray tracer in Rust, following Ray Tracing in One Weekend and Ray Tracing: The Next Week .

Sample rendering from "... in One Weekend".

cargo run --release -- --world=random --seed=42 \
        --aspect_ratio="3:2" --image_width=1200 --samples_per_pixel=500 \
        > test.ppm

Sample rendering

Same with focus blur:

cargo run --release -- --world=random --seed=42 \
        --aspect_ratio="3:2" --image_width=1200 --samples_per_pixel=500 \
        --aperture=0.1 --focus_dist=10.0 \
        > test.ppm

Sample rendering with focus blur

Final scene from "... The Next Week":

cargo run --release -- --world=final_scene --seed=42 \
        --aspect_ratio='1:1'  --image_width=800 \
        --samples_per_pixel=10000 \
        > test.ppm

Final scene

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •