/raytracing-from-the-ground-up

This project aims to finish the source code examples of the book Ray Tracing from the Ground Up.

Primary LanguageC++OtherNOASSERTION

License: GPL v2 GoogleTest

The goal of this project is to make the sample project complete based on the book's chapters.

The origin of the project: Raytracing from the Ground Up

Differences from the original source code

Here is a list of changes that I made in addtition to implementing the mising chapters.

Bulding the source code

You can use CMake to configure your build environment.

# In the repo root directory:
mkdir build
cd build
# Depending on your needs, build for debug or relese: 
cmake .. -DCMAKE_BUILD_TYPE=Debug
cmake .. -DCMAKE_BUILD_TYPE=Release
# Depending on your OS type and installed development tools the development environment is set up in the build directory

Unit testing

For testing I am using GoogleTest. It is copied directly into the repo and can be found in the third_party directory. Using CMake the test application is automatically added the build environment.

Original source code

The original source codes are downloaded from the official website. I am keeping it here for refrence in the src_original directory. The continued version can be found under the src directory.