https://github.com/ownself/UnitySpriteGPUInstancing
A Unity Sprite GPU Instancing Implementation Demo
https://github.com/ownself/UnitySpriteGPUInstancing
Last synced: 23 days ago
JSON representation
A Unity Sprite GPU Instancing Implementation Demo
- Host: GitHub
- URL: https://github.com/ownself/UnitySpriteGPUInstancing
- Owner: ownself
- Created: 2022-02-13T07:25:22.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-29T08:43:16.000Z (over 3 years ago)
- Last Synced: 2024-11-21T03:45:10.770Z (about 1 year ago)
- Language: HLSL
- Size: 284 KB
- Stars: 114
- Watchers: 1
- Forks: 21
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- anything_about_game - UnitySpriteGPUInstancing
README
# Unity Sprite GPU Instancing
A Unity SpriteRenderer GPU Instancing Implementation Demo

Unity Version : 2019.4
### Key features:
* 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
### Related Blog:
For more information, please check out my Chinese blog post: [Unity Sprite GPU Instancing](http://www.ownself.org/blog/2022/unity-sprite-gpu-instancing.html)