Reputation: 3317
I'm drawing to the sprite batch starting with things in the background and ending with the forground.
I wish to be able to use any color and transparency, or if it makes it faster possibly any color and a single given transparency which is quite faint. I need to be able to draw dark on light as well as light on dark or similar shades but of different colors over each other.
What is the best SpriteSortMode and BlendState to use?
I'm thinking SpriteSortMode.Deferred because everything is going on in the order I want it rendered anyway and BlendState.NonPremultiplied, although I'm not sure what NonPremultiplied means.
Upvotes: 0
Views: 533
Reputation: 1936
Deffered renders all of the textures in the order you called draw when you call sprite batch.end. So this is the best in your situation.
SpriteSortMode.Deferred
You probably want BlendState.AlphaBlend assuming that you are using the content processor.If you are using Texture2D.FromStream use BlendState.NonPremultiplied.
BlendState.NonPremultiplied
Upvotes: 1