Toy path-tracer written in Rust
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
data
src
.gitignore
Cargo.lock
Cargo.toml
LICENSE
README.md
test.bat
test.sh

README.md

rspt

Introduction

Toy path-tracer written in Rust, written as a learning exercise. My motivation is two-fold:

  • I wanted to learn a new programming language. My favourite languages are C++ and Haskell, and Rust seems to take some of the best things of both.
  • Computer graphics has always been my favourite programming topic, and I had been wanting to write a path-tracer for the last two years.

Running the program

To run the renderer just run the test.sh or test.bat script. It will compile the program and render a sample scene.

Future plans

  • Write a proper documentation.
  • Create a proper material definition format.
  • Add support for texture mapping and skyboxes.
  • Add support for geometry instancing.
  • Use SIMD for intersection tests.
  • Improve the BVH building code, the current one is excedingly naive.
  • Improve the sampling strategy.