| .. | ||
| flake.nix | ||
| frame1.jpg | ||
| frame2.jpg | ||
| motion.frag | ||
| README.md | ||
| shader.cpp | ||
| stb_image_write.hpp | ||
| stb_image.hpp | ||
shader_example
Loads frame1.jpg and frame2.jpg, runs motion.frag (per-pixel |A - B|)
on the GPU, writes result to frameO.jpg. Desktop GL 3.3, GLFW + GLEW.
g++ shader.cpp -o shader -lglfw -lGLEW -lGL && ./shader
stb_image.hpp and stb_image_write.hpp are vendored in this folder.