OK, so I have 4 buffers, 3 FBOs and a render buffer. Let me explain.
I have a FBO that saves the scene before I draw it to the render buffer.
I have a background buffer that contains the background of the scene.
I have a user buffer that the user is manipulating.
When the user does some action, I draw into the user buffer using some kind of mixing.
Then, to redraw the whole scene, what I want to do is clear the view buffer, draw a background buffer in the view buffer, change the blend, and then draw the user buffer into the view buffer. Finally, render the view buffer into the render buffer.
However, I cannot figure out how to draw an FBO for another FBO. What I want to do is essentially merge and merge the two FBOs, but I cannot figure out how to do it! I am very new to OpenGL ES, so thanks for the help.
source
share