A few updates:
- Fixed skybox texture using the swapchain format instead of RGBA.
- Added cmake file to build the project
The ray tracing code is based on this blogpost. My first attempt at using Vulkan, the ray tracing algorithm is still very basic.
- The ray tracing algorithm is executed for each pixel in a compute shader
- The compute shader writes the color result in a texture
- The graphics pipeline merely renders the texture on the screen
To compile this project, you will need the following libraries
- Vulkan
- GLFW
- stb (for image loading)
Run the following command to build the project
mkdir -p build
cd build
cmake ..
make
./vulkan_ray_tracer