PDA

View Full Version : Separate colour planes?



Don't Disturb
08-08-2006, 08:06 AM
I'm reading back my rendered image, then splitting the rgba components into separate arrays on the CPU.
Is there a way to use MRT to render the rgba components into separate render buffers, so that I don't have to do the splitting in software?

k_szczech
08-08-2006, 10:43 AM
You can only render to RGB or RGBA on current hardware, so if you use MRT you will get 3 RGB images that need to be reorganized either by your application or by the driver.

dorbie
08-08-2006, 12:41 PM
You can use glColorMask to only write results to enabled color buffers.