|Topic was automatically imported from the old Question2Answer platform.
I want to implement a star rating in my game. If its a natural number its no problem, I can modulate the corresponding stars with set_modulate() etc.
But if I have a decimal rating like 3.4 I have to modulate the 4th star only for 40%.
e.g. my white star texture should look like this:
I guess this can be done with shaders, but I have no idea how.
Hope anyone can help me.
I am using godot 3.0 stable.