Here’s a quick question. I’m not a noob in OpenGL as such, but I’m currently working with FBOs for the first time (yeah, I never had to use them before) and I’m having a bit of a headache. So, what I want to do is:
- render the 3D part of the scene to texture
- render the 2D part to a different texture
- composite the parts with some effects, overlays etc. and dump it to the screen.
Since all the textures I need are the same dimensions, I thought I could get away with just 1 FBO and just go changing the colour attachment to as needed (as opposed to multiple FBOs, one for each target texture), but apparently this isn’t working - only the very first frame of the first colour attachment is drawn, which results in a static image being displayed. Am I doing something wrong, or is changing the colour attachment wrong conceptually and I can’t avoid multiple FBOs?