i´ve been asking my self, supposed i have this :
ofClear(0, 0, 0, 0); fbo.begin(); sh.begin(); ofRect(0, 0, ofGetWidth(), ofGetHeight()); sh.end(); fbo.end();
This all that it does is run a fragment shader
So,what would be more efficient? Run this code on the update or in the draw function?
i´ve seen some examples that runs it in the update and other in the draw.