Line Renderer: Fade from one color to another abrubtly.
Hi there,
I've been working on a project, in which i want to move an object from the beginning of a Line Renderer, to its end. While the objects moves along the Line Renderer, I want the Line Renderers Color to abruptly change to a set color, up to the objects current position.
So if the object has reached 20% of the way, I want the first 20% percent of that Line Renderer to be of one color, while the other 80% are of another color. Theres supposed to be no smooth blending between the colors, but rather an abrupt recoloring. Is this possible?
I already set the Line Renderer's Gradient to Fixed, but the Line Renderer definately does not display the colors, the way the gradient editor displays it. I was also thinking about just creating a second Line Renderer, of which its end point's position is always the same as the object's position, moving along the Line Renderer. Though that would be quite difficult to implement in the context of the project.
Thanks in advance :)