/inOneWeekend

Walkthrough of Peter Shirley's awesome "Ray Tracing In One Weekend" book.

Primary LanguageC++

Ray Tracing in One Weekend

(Yet another) walkthrough of this fantastic book by Peter Shirley. You can get a hold of it here along with other resources.

Contents

The sources are split into chapter folders, each of them with the incremental code changes specific to that chapter.

Compile/run

The code can be compiled with the following command under each chapter's folder:

g++ main.cpp -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 2 Chapter 3 Chapter 4 Chapter 5 Chapter 6 Chapter 7 Chapter 8 Chapter 9 Chapter 10 Chapter 11 Chapter 12