Unity logo
Cancel
Cart
Applications
Sell Assets

Over 11,000 five-star assets

Rated by 85,000+ customers

Supported by 100,000+ forum members

Every asset moderated by Unity

Home
VFX
Shaders
This content is hosted by a third party provider that does not allow video views without acceptance of Targeting Cookies. Please set your cookie preferences for Targeting Cookies to yes if you wish to view videos from these providers.
1/8
Optimized health bar billboard shader for srp and urp, gpu instancing compatible
Render pipeline compatibility
The Built-in Render Pipeline is Unity’s default render pipeline. It is a general-purpose render pipeline that has limited options for customization. The Universal Render Pipeline (URP) is a Scriptable Render Pipeline that is quick and easy to customize, and lets you create optimized graphics across a wide range of platforms. The High Definition Render Pipeline (HDRP) is a Scriptable Render Pipeline that lets you create cutting-edge, high-fidelity graphics on high-end platforms.
Unity VersionBuilt-inURPHDRP
2020.3.14f1
Compatible
Compatible
Not compatible
Description

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

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)

Health Bar Billboard Shader - SRP URP

(not enough ratings)
11 users have favourite this asset
(11)
$12
Taxes/VAT calculated at checkout
82 views in the past week
License type: Single Entity
Single Entity
Recommended for individuals and small businesses.
Multi Entity
Recommended for large enterprises working across multiple locations.
Refund policy
This asset is covered by the Unity Asset Store Refund Policy. Please see section 2.9.3 of the EULA for details.
Secure checkout:
Supported payment methods: Visa, Mastercard, Maestro, Paypal, Amex
Quality assets
Over 11,000 five-star assets
Trusted
Rated by 85,000+ customers
Community support
Supported by 100,000+ forum members
Unity logo
Language
Feedback
Partners Program
Partners
USD
EUR
Copyright © 2025 Unity Technologies
All prices are exclusive of tax
USD
EUR