I wanna make a “progress bar” using material for displaying it on a mesh, but I found nothing on how to do that, I fund some tut’ for rotating progess bar, but noting for vertical or horizontal
My “progress bar” will be limited using some mask (I have 2 individual bar, one on Blue channel and the other on the Green channel), I’m ussing Emmisive and Opacity Mask
so how can I increase or decrease verticaly, the mask ?
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.
That should work fine. Generally though, you will get the same result for a bit cheaper using a “floor” or “ceil” operation. They both are the same but floor rounds down (0.1 becomes 0) whereas ceil rounds up (0.1 becomes 1).
So if you did that Ceil(gradient - DissolveAmount), you will get a nice cheap mask where DissovleAmount sets how much is black.