Easy to make and build in different platforms powered by Premake.
Well organized example projects to help you understand.
git clone https://github.com/T-rvw/RayTracer.git
Windows + VS2019 : run generate_vs2019.bat
.
MacOS + XCode : run generate_xcode.command
. Note : chmod +x generate_xcode.command
before the first run.
Other platforms & IDEs : See Premake document.
By default, we opened OpenMP compile option to support parallel calculation in multiple threads.
Also, please use release build to render complex images to save your time.
Mathematics for 3D Game Programming and Computer Graphics, Third Edition