SpriteBatch and custom shaders

In XNA and its successors, like SharpDX Toolkit or Monogame, the easiest way to draw sprites is by using the SpriteBatch class. As the name implies, SpriteBatch draws the sprites in batches rather than as separate draw calls. Handy and efficient, right? Enter pixel shaders. You want to do something like draw a single sprite […]

Read More