Health Bar Billboard Shader – SRP URP


Optimized health bar billboard shader for srp and urp, gpu instancing compatible


by Blasphy


Price History +

-- 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