This folder contains the finished code for Ray Tracing in One Weekend (local / online).
This folder is not meant to act as its own tutorial. The source presented here is provided so you can compare your work when progressing through the book. We strongly recommend reading and following along with the book to understand the source.
This book is written in C++, and uses some modern features of C++11. The language and features were chosen to be broadly understood by the largest collection of programmers. It is not meant to represent ideal C++ code.
As the source is intended for illustration & comparison only, it does not include any mechanism for building a final program. As far as possible, the code is privately tested on multiple platforms to ensure that it is generally usable on any OS (primarily Windows, OSX, and Linux), compiler, or build environment.
It is therefore necessary for you to create your own build tooling. However, the source begins as a single main file, and uses only a small collection of additional header files.
The Ray Tracing in One Weekend series has a long history of implementations in other programming languages (see Implementations in Other Languages), and across all three primary operating systems. Feel free to add your own implementation to the list!
If you spot errors, have suggested corrections, or would like to help out with the project, please review the CONTRIBUTING guidelines for the most effective way to proceed.