The sources follow the book in order, minus Perlin Noise (Chapter 4). Each chapter has a corresponding commit in the git history.
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.
The outcome of each chapter can be seen below: