CPU Path Tracing demo written in C!
Build and run with:
make && ./build/prismisYou 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