How to render Sprites in OpenGl (transparency question),
Crossbones+ - Reputation: 3960
Posted 19 December 2012 - 12:45 PM
As an approach, it's very much out of favour and is a bit awkward on modern graphics pipelines. Basically, your options are to hack something into your pixel shader to detect and reject pixels with the magenta colour, or to preprocess your texture (either offline, or as you load it) to add an alpha channel to your texture (an alpha channel is a fourth colour channel which is often used for transparency). I'd recommend adding the alpha channel.
Prime Members - Reputation: 1652
Posted 19 December 2012 - 02:11 PM
Members - Reputation: 282
Posted 19 December 2012 - 03:51 PM