Over 11,000 five-star assets
Rated by 85,000+ customers
Supported by 100,000+ forum members
Every asset moderated by Unity
Unity Version | Built-in | URP | HDRP |
---|---|---|---|
2020.3.14f1 | Compatible | Compatible | Not compatible |
-- Health Bar Billboard shader --
This package includes 2 shaders:
- 1 health bar SRP compatible
- 1 health bar URP compatible
- characters and characters shader not included
Package Info:
I saw many health bars made with world space canvas so I choose to create a more optimized shader that use a quod and a shader to render the effect.
This shader use a splat map to control 3 differents bars (for mana or defence, for exemple) in a single material/shader
This shader is an optimized method to have a character health bar. Is ment to be used when many characters need to be rendered because the shader support gpu instancing and use just a quod to render the effect. So you can use just 4 vertices and a single batch to render 3 different bars.
This shader use two textures. One for rendering the background and one for detect the different bars. The second texture is a splat map (rgb map) where each channel select a specific bar. So you can move the slider for each channel indipendently
Documentation:
https://94matteo1.github.io/Asset-Store-Projects-Documentation/#/2DHealthBar
Health Bar Billboard Shader - SRP URP
