Skip to content

shiroto/Unity_URP_Batching_Example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unity URP Batching Example

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.

What does this do?

Render an arbitrary amount of sprites in 1 draw call with 3D shadows.

How can this be extended?

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.

Support

If you found this helpful you can "Buy Me A Coffee"

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published