SkyLok/shader_example/README.md
2026-05-21 14:11:06 +02:00

11 lines
307 B
Markdown

# 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.
```sh
g++ shader.cpp -o shader -lglfw -lGLEW -lGL && ./shader
```
`stb_image.hpp` and `stb_image_write.hpp` are vendored in this folder.