but what if I only want to draw to one of the colour buffers? is this possible without changing the bound Frame Buffer Object? currently if I draw to only one buffer I will get black coloured data in the remaining buffers, is there a way around this?
A glDrawBuffers() call with the list of color attachments you want to draw to will select a subset of the FBO’s attachments. If you’re only selecting one, you can use glDrawBuffer(GL_COLOR_ATTACHMENT#) but you’ll need to use glDrawBuffers() to restore rendering to all three.
Thanks guys, I figured that is what I’d have to do, I kind of wondering if there was a was of discarding only certian fragment outputs and not all. I guess not.