Zwilnik
2003.03.23, 05:56 PM
This is more for a cool feature rather than a gameplay critical effect, but I was wondering if there's a fast way in basic OpenGL to draw to a texture but keep that texture's original alpha channel (I'm using 32 bit RGBA textures). I can see ways of doing it off-card by doing the effect with the CPU (ie re-copying the alpha bytes over the result), but I was wondering if OpenGL has any built in methods.
Preferably, any effect would have to be 'clear' OpenGL rather than via the extensions, as I've found that otherwise cool extensions (like the multipass textures) only work on NVidia cards (it passes if it works on my iBook 500 ;) )
Preferably, any effect would have to be 'clear' OpenGL rather than via the extensions, as I've found that otherwise cool extensions (like the multipass textures) only work on NVidia cards (it passes if it works on my iBook 500 ;) )