- Home /
LineRenderer Shader to color different parts of the line based on value
Hi,
So I want to be able to change the color on different parts of my line renderer based on a values I have.
Basically where those circles are, I want to be able to change their colors in a gradient style. Like if I have value 10 I get red on point and as I get further from the point my color changes to the rest of my gradient, if I have 5 different color, if I have 0 I get white. These values are updating constantly.
I have no idea where to start. I'd like to use shaders to color different part of my line
Your answer
Follow this Question
Related Questions
Creating a line between different colors? 0 Answers
Manually setting normals in shader 0 Answers
Best way to achieve a vector graphics effect? 2 Answers
Addition to Standard Shader stopping it from batching? 0 Answers
Shader Help 0 Answers