Hi,
I’m doing a trajectory line of dynamic length and dynamic number of visible bones with a PoseableMesh. I want to have a nice gradient at the end of the line. Say that I have a total of 40 bones, but maybe only using 20. Then the last 20 will have the same position as the last valid bone. Also the length of each bone will differ.
So now I’m doing a simple gradient with just a TexCoord and a mask (attached image). But then there is basically no gradient, since UVs are based on same bone length - and half of UV space is in one point…
So how can I do a constant gradient, eg. 1 -> 0 during last X units of the complete line?
Thanks!
//Jonas