colors - OpenGL normal blending with black alpha edges -


i have problem blending text. it's not text problem global blending problem alpha value.

i tried 2 different blending function on image (text image too). function glblend different first parameter. (i know how glblend func works)

blend samples

there black pixels around text , it's around every alpha image smooth alpha edges. doesn't seem text :/

the result parameter gl_one want can't make text fade alpha value.

so question is:

is there way how result gl_one parameter using source alpha value of image?

with parameter source alpha of image isn't used can't transparent. want animate image this:

enter image description here

i need use gl_src_alpha function because need use source alpha. tried increase color values fragment shader result similar gl_one blending don't want change original colors.

any help? thanks.

edit: there page blending functions can try , better understand mean:

http://www.andersriggelsen.dk/glblendfunc.php


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -