flixel
flixel copied to clipboard
FlxBitmapText alpha is wrong on native
Currently setting the alpha of a FlxBitmapText with a border is incorrect on native.
It looks like the border and text are being made transparent separately, which means the overall alpha is wrong and produces some strange effects. I think there is more on top of this, though...
White text on a black border, for example, will seem to turn black before turning transparent.
Example: http://hastebin.com/dorijovuyo.avrasm
That hastebin is empty.
Definitely still an issue though, reproducible with this code in the FlxBitmapText
demo:
//tf.textColor = 0xff000000;
//tf.useTextColor = true;
tf.borderStyle = FlxTextBorderStyle.OUTLINE;
tf.borderSize = 2;
tf.alpha = 0.4;
How are we supposed to render to a texture such that we can reuse it on native? This is something I am still unsure of, but it would help with this among many other issues such as per sprite/camera shaders.
This is still an issue with the latest dev branch.