A C++ implementation of PBRT