Skip to content

IExploitableMan/Prismis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prismis™

CPU Path Tracing demo written in C!

Building & running

Build and run with:

make && ./build/prismis

You can tweak the following constants in the source code to adjust rendering:

#define WIDTH 960
#define HEIGHT 540
#define MAX_DEPTH 5 // Maximum number of bounces per ray
#define SAMPLES 4 // Number of samples per pixel
#define THREADS 8
#define SEGMENT_SIZE 16 // Size of image segment (tile) for work distribution among threads

Gallery

Expand

About

CPU Path Tracing demo written in C.

Topics

Resources

License

Stars

Watchers

Forks