Hi,
My textures are loaded in as bitmaps. How can I make it so all the black in the texture is transparent?
Thanks,
James
Hi,
My textures are loaded in as bitmaps. How can I make it so all the black in the texture is transparent?
Thanks,
James
You will have to convert the image data from 24-bit to 32-bit.
Whilst you read each scan line of the bitmap image detect when you have a black pixel and set the alpha to some value, eg 0 and 255 for all other values.