Daniel yep I definitely had fun as I was working on it on my tiny Macbook in Berlin at a Campus party, felt like old school demoscene times. I looked over your code and you chose totally different approach as I don't use render to texture pass for my filters, thats what I will do for post process effects that are coming next.
Btw you have a bug in ColorMatrix filter you shouldn't transpose the matrix if you want to simulate the same matrix as in native ColorMatrix filter. Example:
Native color matrix array 5*4
[1, 2, 3, 4, 5
1, 2, 3, 4, 5
1, 2, 3, 4, 5
1, 2, 3, 4, 5]
This is what you will send transposed:
[1, 1, 1, 1
2, 2, 2, 2
3, 3, 3, 3
4, 4, 4, 4
5, 5, 5, 5]
And this is what you should be sending:
[1, 2, 3, 4,
1, 2, 3, 4,
1, 2, 3, 4,
1, 2, 3, 4,
5, 5, 5, 5]
Basically move the 5th column to be a 5th row as those are the channel offsets.