You can then open the project as a cmake project in your preferred IDE by opening the vulkan_rtx/src directory as a CMake project.
The rtx_tracer executable provides the following features:
Interaction:
- WASD for usual movement
- Q/E for up/down
- Mouse for looking around
- Hold Shift to move faster
- Esc to exit
Rasterization/Ray tracing:
- Press P to switch between the rasterizer and the ray tracer
You can edit what models are loaded in the init_scene method.
The shaders/basic_rtx/raygen.rgen contains code to spawn rays. There is also a function included to produce a fish-eye lens effect, which can't be done easily using rasterization. Just go there and you will see the instructions in comments in the code.
## Required libraries
You need to install the Vulkan SDK that you can download at: https://vulkan.lunarg.com/
## Required Assets
For the project to fully work (without changing code), you need to download the assets. You can easily do that by running the *download_assets.py* script. For that you need to install python (https://www.python.org/). Depending on your system setup, you might just need to double click on the file. Otherwise run it from the console (in the vulkan_rtx directory) as:
```
python download_assets.py
```
This will download a number of files into the resources/download directory and extract the files into the correct resources subdirectories