James A.
07-16-2011, 04:34 AM
I have 3 colour render buffers attached to my FBO and most of the time I will draw to all of them in the same shader using something like
outFragData[0] = vec4(1.0);
outFragData[1] = vec4(1.0);
outFragData[2] = vec4(1.0);
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?
outFragData[0] = vec4(1.0);
outFragData[1] = vec4(1.0);
outFragData[2] = vec4(1.0);
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?