I´m trying to find a way to draw gui text with antialias off at certain times.
The idea is that a shader uses the background color to color-key the text onto a moving background.
But with antialias globally enabled the text has a nasty jagged edge around it.
Any one know how to do this?
Disable antialias selectively on font drawing for color key
Re: Disable antialias selectively on font drawing for color
1. Use alphachannel
or
2. calculate the alpha value (e.g. white isfull visible, black is invisible and grey is half visible) - does not work with different colored fonts.
or
2. calculate the alpha value (e.g. white isfull visible, black is invisible and grey is half visible) - does not work with different colored fonts.
Rust fanboy
Re: Disable antialias selectively on font drawing for color
thanks, I´m not sure how to use alphachannel. I´m using A8R8G8B8 textures, antialias is enabled.
I need to draw text onto the texture with the background area filled with alpha set off.
I tried loading a PNG image with the alpha at zero and drawing the text foreground only over it, but there seems to be no alpha on the pixels set font->draw(..)
I need to draw text onto the texture with the background area filled with alpha set off.
I tried loading a PNG image with the alpha at zero and drawing the text foreground only over it, but there seems to be no alpha on the pixels set font->draw(..)