Hi,
sorry if this a dumb question, just starting out in XNA :)
I'm trying to do 3D clock by using SpriteFont,but can't make drop shadow effect nicely.
I have seen some examples in XNA 2.0 book which I didn't buy ( was for real beginers ) and author
did achieve this effect somehow buy using Alpha channel, but I don't remember how he did it.
I think I'm missing something as in my case shadow is simply black..
This is how I'm trying to draw shadow:
// draw shadow by using alpha = 20
for (int i = 0; i < 3; i++)
{
pos.Y -= 1;
pos.X -= 1;
spriteBatch.
DrawString(myFont, sTime, pos,
new Color
(new Vector4
(0,
0,
0,
20)),
0, Vector2.
Zero,
1, SpriteEffects.
None,
0);
}
Code link
http://pastebin.com/m7e71eba1