Skip to content

absorensen/raytracing_in_rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

raytracing_in_rust

A path tracer based on Peter Shirleys books. I tried to take the end of the third book as a jumping off point for learning more about Rust and various quality of life improvements and performance enhancements. I added a UI with egui and increased performance with ultraviolet and rayon. I removed all of the smart pointers, dynamic dispatches and recursive rendering, replacing them with dependency injection of services and using indices, enums for handling structs implementing an interface and recursion was replaced by a loop based on pbrt's render loop. Additionally, I added subpixel sampling, as a form of stratification, based on smallpt. Ultimately, as I wanted to implement more advanced topics, the overly paedagogical architecture from Peter Shirleys books proved to be hard to continue to adapt without massive changes.

It was a great experience and can wholeheartedly be recommended. Check the images folder for results representative of the current state of the path tracer.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages