PDA

View Full Version : FBO and MRT and colormask



Bobo.Bobo
02-12-2007, 09:06 AM
Hi,
Is it possible to set different color masks (glColorMask) to different color attachments?
When I call

glDrawBuffer(GL_COLOR_ATTACHMENT1_EXT);
glColorMask(0, 0, 1, 1);It sets color mask to all color attachments in FBO.

Thanks.

arekkusu
02-12-2007, 11:43 AM
EXT_draw_buffers2 allows this. Otherwise, no.