Raytracers in Rust
This repository contains a few very simple raytracer implementations written in Rust. They are listed here in increasing order of complexity:
raytracer_2d.rs: The simplest possible (?) raytracer that produces a 2D image with orthographic projection.
raytracer_pinhole.rs: Similar to
raytracer_2d.rsbut now we use a pinhole camera model for capturing the image. Also added a light source and implemented simple phong shading.
raytracer_pinhole_path.rsImplements path-based ray tracing by recursively following rays up until a maximum depth of 4. Rays are sampled randomly using a monte-carlo based approach.
5k samples 10k samples