Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/youlixx/vulkan-ray-tracing
A simple Vulkan ray tracer using compute shaders
https://github.com/youlixx/vulkan-ray-tracing
ray-tracing vulkan
Last synced: 2 months ago
JSON representation
A simple Vulkan ray tracer using compute shaders
- Host: GitHub
- URL: https://github.com/youlixx/vulkan-ray-tracing
- Owner: Youlixx
- License: mit
- Created: 2022-11-14T01:42:10.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-01T18:25:58.000Z (7 months ago)
- Last Synced: 2024-06-01T20:49:43.582Z (7 months ago)
- Topics: ray-tracing, vulkan
- Language: C++
- Homepage:
- Size: 312 KB
- Stars: 8
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# vulkan-ray-tracing
A few updates:
- Fixed skybox texture using the swapchain format instead of RGBA.
- Added cmake file to build the project![Ray traced spheres](ray_tracing.jpg)
The ray tracing code is based on this [blogpost](http://blog.three-eyed-games.com/2018/05/03/gpu-ray-tracing-in-unity-part-1/).
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## How to build
To compile this project, you will need the following libraries
- Vulkan
- GLFW
- [stb (for image loading)](https://github.com/nothings/stb)Run the following command to build the project
```
mkdir -p build
cd build
cmake ..
make
./vulkan_ray_tracer
```