Vertical material progress bar

Quite simple… on my phone now so I can only roughly explain but you want a greyscale mask of your health bar. You feed a scalar param [0, 1] into your material and you build your opacity by multiplying the earlier mask by 1 or 0 based on whether its value is higher or lower than the scalar parameter respectively.