This is a minimal example of how to batch 2D sprites in a 3D scene with shadows using GPU Instancing. All you need is in Content/SampleScene.
Render an arbitrary amount of sprites in 1 draw call with 3D shadows.
The shader is very simple and only renders a single sprite. By using a sprite atlas and defining a buffer for texture coordinates, you could draw any number of sprites in the same draw call.
