Uploaded April 2024 | Updated November 2026, 3 hours ago
Now that we have a HP bar shader for our RTS units, let's hook them with Gdscript to follow the attribute stats we want from our Godot project. In this tutorial I am going to show you how you can convert, the shader instance float range to the unit hp range so the bar displays it accurately, this will allow you to update the bar automatically with gamedata stats like HP max.
The Shader:
godotshaders.com/shader/3d-hp-bar-of-2-blended-colors
Itch.io Profile Page:
nanotech-gamedev.itch.io
Now that we have a HP bar shader for our RTS units, let's hook them with Gdscript to follow the attribute stats we want from our Godot project. In this tutorial I am going to show you how you can convert, the shader instance float range to the unit hp range so the bar displays it accurately, this will allow you to update the bar automatically with gamedata stats like HP max.
The Shader:
godotshaders.com/shader/3d-hp-bar-of-2-blended-colors
Itch.io Profile Page:
nanotech-gamedev.itch.io










