Skip to content

Youlixx/vulkan-ray-tracing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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

How to build

To compile this project, you will need the following libraries

Run the following command to build the project

mkdir -p build
cd build
cmake ..
make
./vulkan_ray_tracer

About

A simple Vulkan ray tracer using compute shaders

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published