Here a small example.
I did this as an intro test for my ackon documentation (which I need to finish at last)

https://www.youtube.com/watch?v=W6l5sUNslU0&feature=youtu.be

The slow framerate is not an shader issue, but a problem with my capturing method.