View on Asset Store (opens in new tab)
Package details
- Latest version
- 1.0
- Last updated
- First released
- Unity version
- 2020.3.14 or later
- Package size
- 537 KB
- Files
- 8
- Favorites
- 11
- Views in the past week
- 6
Price tracking
- Last checked
- Tracked since
- Lowest recorded
- $12.00 on
Keywords
Health Bar Billboard Shader - SRP URP
- Price drop
Optimized health bar billboard shader for srp and urp, gpu instancing compatible
Lowest recorded price
Get 40% off on Asset Store (opens in new tab)Affiliate link · Purchases support this site
Price history
Last 6 months
USDAsset preview
1 / 7
Health Bar Billboard Shader - SRP URP screenshot 1
About this asset
-- 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
From the publisher's Asset Store listing.
Technical details
Shader Parameters:
- Background texture
- Splatmap texture
- Smoothstep (sharp health bar edge)
- Red, Green, Blue channels to handle 3 different bars
- uvMin (to select the starting point of the bar)
- uvMax (to select the end point of the bar
- Fill (to control the normalized value (between 0 and 1) of the bar)
Compatibility
| Unity version | Built-in | URP | HDRP |
|---|---|---|---|
| 2020.3.14f1 | Compatible | Compatible | Not listed |
As listed on the Asset Store.