Say I’d like to add some nice shader effect to a small piece (like 50*50 pixels) of the framebuffer or a fbo. How should I do this?
Should I attach the fbo texture as a whole to the shader?
Related: Is there a difference in performance between binding a small area (with some subimage function) and binding the whole image?
Thanks
ps. Can the accumulation buffer be sampled alike a fbo-texture?
So the size of the texture has no effect on the sampling performance.
It just feels slow to bind a big (2048*1024) fbo just to change a small area.
The set-up would be:
render a small area (quad), bind fbo(which contains the whole soon-to-be-shown scene :)) and use fancy-effect shader which samples from the fbo.