Hi,
I'm trying to have some text fade-in and out, and I'm not sure how to do it:
Here's what I have tried:
APPROACH 1: Alpha is ignored. I get completely opaque text.
node:
w/ AlphaState (DST = 1 - SRC)
w/ TextureState (defaultfont.tga)
w/ MaterialState
w/ diffuse(1,1,1,0.5f)
node.add( new Text("myText") );
APPROACH 2: Text shows up as white rectangle.
node:
w/ AlphaState (DST = 1 - SRC)
w/ TextureState (defaultfont.tga)
text:
w/ MaterialState { diffuse(1,1,1,0.5f) }
node.add (text)
Thanks a lot for helping.
-Cuppo