This project is a simple ray tracing project written in Rust, based on the Ray Tracing in One Weekend book series. The code was adapted by me from C++ to Rust.
- Rendering of spheres and 3D models (STL files)
- 5 different materials : Diffuse, Metal, DiffuseMetal, Dielectric, and DiffuseLight
- Setting a color for the Skybox
- Setting up the Camera where you want in the Scene and render a Scene from different Cameras
- Configuration of the rendering through the
Config
struct - Optimizations: Multithreading and Bounding Volume Hierarchy (BVH)
Clone this repository, and run cargo run --release
in the raytracer
directory.
Check the src/bin/main.rs
file for example scenes to render.