307 B
307 B
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.