/theNextWeek

Walkthrough of the book "Ray Tracing: The Next Week" by Peter Shirley.

Primary LanguageCCreative Commons Zero v1.0 UniversalCC0-1.0

Ray Tracing: The Next Week

Contents

The sources follow the book in order, minus Perlin Noise (Chapter 4). Each chapter has a corresponding commit in the git history.

Compile/run

The code can be compiled with the following command:

g++ main.cc -O2 -o main

Then, the executable can be run with:

./main > img.ppm

Note that you need g++, or another C++ compiler installed in your machine.

Result images

The outcome of each chapter can be seen below:

Chapter 1 Chapter 3 Chapter 5 Chapter 6 - Lights Chapter 6 - Cornell Box