⚠️ Themainbranch is currently going through a big internal rework — I’m planning to merge a bunch of changes I’ve been working on in the next few weeks.In the meantime, feel free to open pull requests against the
communitybranch so things don’t get lost or conflict with the upcoming update.Thanks for contributing!
You can watch a YouTube video about this project here (or click the image).
- Clone this repository:
git clone --recursive https://github.com/jakubg05/ray-tracing.git your-project-name
cd your-project-name
git submodule update --init --recursive
- Right-click the cloned folder and select "Open with Visual Studio," or open Visual Studio and navigate to File -> Open -> CMake... and choose the root CMakeLists.txt.
- Run the Debug build.
- Create a Release configuration by clicking the x64-Debug dropdown and adding x64-Release.
- Choose raytracing.exe from the box on the right and hit the run button.
-
Core as a Static Library: The
coredirectory contains its own CMakeLists.txt file and is configured to be built as a static library. This means the compiled code from thecoredirectory is packaged into a single.lib(Windows) or.a(Linux) file. -
Application Linking: The
appdirectory doesn't have its own CMakeLists.txt. Instead, the root CMakeLists.txt handles: -
Building the executable for the application
-
Linking the application's executable against the
corestatic library -
Linking the application's executable against the third-party libraries (GLFW, GLEW, etc.)