SkyLok/shader_example
2026-05-21 15:23:13 +02:00
..
flake.nix move .h to .hpp 2026-05-20 11:09:54 +02:00
frame1.jpg update readme and example frames 2026-05-20 10:34:53 +02:00
frame2.jpg update readme and example frames 2026-05-20 10:34:53 +02:00
motion.frag updated ai shader 2026-05-21 12:30:30 +02:00
README.md readmes and gps changes 2026-05-21 14:11:06 +02:00
shader.cpp cleanup and fixes 2026-05-21 15:23:13 +02:00
stb_image_write.hpp move .h to .hpp 2026-05-20 11:09:54 +02:00
stb_image.hpp move .h to .hpp 2026-05-20 11:09:54 +02:00

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.