A Unity SpriteRenderer GPU Instancing Implementation Demo
Unity Version : 2019.4
- Replace SpriteRenderer with custom MeshRenderer at runtime
- Using Vertext shader to represent PixelsPerUnit and offset in Sprite
- Combine textures with Texture Array, so textures need to be at same format and size
- Use MaterialPropertyBlock for GPU Instancing feature of Unity
For more information, please check out my Chinese blog post: Unity Sprite GPU Instancing