I have a problem with blending text. It's not only text problem but global blending problem with alpha value.
I tried 2 different blending function on image (text is image too). Function glBlend with different first parameter. (I know how glBlend func works)
There are black pixels around the text and it's around every alpha image with smooth alpha edges. It doesn't seem good with the text :/
The result with parameter GL_ONE is exactly what I want but I can't make text fade with alpha value.
So the question is:
Is there any way how to get result from GL_ONE parameter with using source alpha value of the image?
With this parameter source alpha of image isn't used so it can't be transparent. I want to animate the image like this:
I need to use GL_SRC_ALPHA function because I need to use source alpha. I tried to increase the color values with fragment shader so the result is similar to GL_ONE blending but I don't want to change original colors.
Any help? Thanks.
EDIT: There is page with blending functions you can try it and better understand what I mean: