blend question

  • Follow


hello

i have a blendfunc such as : GL_ONE ,  GL_ONE_MINUS_SRC_ALPHA

the problem is that if i do a glColor4f( 1,1,1,alpha ) i can't get my
sprites to fade in /out.  ( they get "whiter" )

Is there a way to get a "ghost" effect with such a blend func ?

Thank you
pat.


0
Reply patrox 10/28/2004 1:06:29 PM

patrox wrote:
> i have a blendfunc such as : GL_ONE ,  GL_ONE_MINUS_SRC_ALPHA
> 
> the problem is that if i do a glColor4f( 1,1,1,alpha ) i can't get my
> sprites to fade in /out.  ( they get "whiter" )
> 
> Is there a way to get a "ghost" effect with such a blend func ?

Perhaps a blend function GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA is what 
you really want? Otherwise you'll always get the full sprite color 
value, the alpha controls only the amount of background color.


Malte
0
Reply Malte 10/28/2004 2:02:42 PM


1 Replies
120 Views

(page loaded in 0.017 seconds)

Similiar Articles:













7/29/2012 10:28:38 PM


Reply: