tinyraytracer_rs

Crates.iotinyraytracer_rs
lib.rstinyraytracer_rs
version0.1.1
created_at2025-05-30 22:27:04.79083+00
updated_at2025-05-31 14:27:14.122489+00
descriptionA simple raytracer in pure Rust, converted from C++
homepage
repositoryhttps://github.com/Houssem-Jarray/tinyraytracer_rs
max_upload_size
id1695731
size7,093,437
Houssem Jarray (Houssem-Jarray)

documentation

README

tinyraytracer_rs

A basic ray tracer written in Rust 🦀. This project showcases how to build a minimal path-traced renderer from scratch, featuring:

  • Ray-sphere intersection
  • Shadows and shading
  • Diffuse and specular reflection
  • Mirror and glass (refraction)
  • Recursive ray tracing
  • PPM image output

📸 Output Preview

Render preview

Scene rendered with spheres, lighting, reflection, and refraction.

🚀 Getting Started

Clone and run the project:

git clone https://github.com/Houssem-Jarray/tinyraytracer_rs.git
cd tinyraytracer_rs
cargo run --release
Commit count: 7

cargo fmt