Skip to content

TalosSources/path_tracing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Path Tracer

This is a simple path tracer written in pure rust (no GL) and running on the cpu (multi-threaded) for now. It is probably underfeatured and slow but it exists mainly for (self-)didactic purposes. Currently, it supports :

  • diffuse, glossy and specular reflections
  • specular refractions
  • the combining of the two via fresnel equations
  • semi-specular surfaces
  • spheres, planes and rectangle primitives

Hopefully, more features can be added later. (see roadmap.md)

Usage

Simply run the main.rs file, with cargo run or by compiling it. It isn't documented yet, but one can change several options, and build scenes by looking at how it is done in the source code.

Examples

Here are some renders made with the engine :

alt text

alt text

alt text

About

A simple monte-carlo path tracer written in Rust

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages