A minimal Vulkan VK_KHR_fragment_shader_barycentric triangle example
- C 93.7%
- GLSL 3.2%
- CMake 3.1%
| .gitignore | ||
| CMakeLists.txt | ||
| LICENSE | ||
| README.md | ||
| screenshot.png | ||
| triangle.frag.glsl | ||
| triangle.vert.glsl | ||
| vulkanbarycentrictest.c | ||
Important
The primary repository has moved to git.rosseaux.net/BeRo1985/vulkanbarycentrictest. This GitHub repository is kept up-to-date via push mirroring.
Description
A minimal Vulkan VK_KHR_fragment_shader_barycentric triangle example, which demonstrates the use of the barycentric coordinates in the fragment shader.
Prerequisites
- Vulkan SDK
- SDL2
- CMake
- C compiler
Build (Linux)
$ cmake .
$ make
Run (Linux)
$ ./vulkanbarycentrictest
Build (Windows)
$ cmake -G "Visual Studio 17 2022 Win64" .
Open the generated Visual Studio solution and build it.
Run (Windows)
Open a command prompt and run the executable.
Screenshot
License
zlib see LICENSE file
