Joel Martinez is really right, and you use it like this with SpriteBatch, loading the effect into tintWhiteEffect:
spriteBatch.Begin(SpriteBlendMode.AlphaBlend, SpriteSortMode.Immediate, SaveStateMode.None); tintWhiteEffect.Begin(); tintWhiteEffect.CurrentTechnique.Passes[0].Begin();
SpriteSortMode.Immediate is the trick here, it allows you to change your default SpriteBatch shader. Using this, you will make the sprite drawing a little slower, since the sprites are not assembled into a single call to draw, but I donโt think you will notice the difference.
finalman
source share