Hi all,
I am struggling to wrap my head around the best way to add a gradient of color to a line. It seems like the simplest way is to use the ramp MAT, but I want the gradient to always follow the coordinates of the line in space.
IE if I think of the line as point 1 which I want to be red and point 2 which I want to be blue, I want the gradient to follow the line transitioning from red to blue, and I want that to happen no matter where I define the coordinates of each point in space.
It seems like the line material has this close and far color thing that is close to what I want, but I don’t want the line to get thicker and thinner because of the camera perspective.
Poking around, it seems like the point chop should also be able to do this, if there was some way for the color of each point to be defined by its index and have that affected by a ramp, but I can’t wrap my head around how to do it.
I assume there must also be a way to do this on the MAT side by transforming a ramp to always follow the two points of the line in space
I will attach the flow I have right now, I am quite new to touch designer so any and all feedback is appreciated, thank you.
LineGradient.toe (6.7 KB)