This code is a port of http://www.quasimondo.com/colormatrix/ColorMatrix.as.
This is only tested on windows 10.
In order to use this code, you need a fragment shader code where it'S located at "./bin/data/shader/" directory.
Here is a one of the example applying color matrix effect to an image.
void ofApp::setup(){
:
colorMat.adjustBrightness(100, 100, 100);
:
}
void ofApp::draw(){
:
colorMat.apply(shader);
:
}