I’m attempting to create circle style bar and I thought using an angle alpha mask would be the way to go performance wise, but I just can’t manage to control it properly.
This is the mask I’ve been trying to use and the bar I’ve been trying to mask.
This is what I’ve attempted to do, but I just can’t control it by using a variable or anything.
I tried multiplying the mask and then flooring the values to get a one bit alpha mask, but it doesn’t work the way I want it to. I just want to be able to control how much of the bar is shown with a percentage. Like if I say “display 75%” then it displays 3/4 of the circle and so on.
Can anyone enlighten me with maths goodness?