Hi folks.
I would like to achieve a filled sprite, which should be filled with two different colors (well, actually three 'cause the background should be grey) and I wonder how I can achieve this.
The situation is, that there is an energy cable (without energy) and from both ends could be energy inserted, which then fills the cable with its energy (red from one side, blue from the other side). You can see an example of it in the screenshot, I've done with a normal and two filled sprites, but this leaves some problems.
Has anyone a suggestion how to solve the problem? Maybe the sprites aren't the right solution and I should check out if I can achieve something like that with a shader?
Any help is appreciated!