03-16-2026, 05:04 PM
My team is using a curvy generator to create cables by duplicating and deforming a single mesh segment along a spline. That gets baked down into one static mesh with a custom shader.
I'd like to be able to access the data about the meshes "progress" along the curve in the shader. Either with another set of UVs that maps 0 - 1 to the progress along the curve, a single color channel that does the same, or an index of the mesh copy. Are any of these possible?
I'd like to be able to access the data about the meshes "progress" along the curve in the shader. Either with another set of UVs that maps 0 - 1 to the progress along the curve, a single color channel that does the same, or an index of the mesh copy. Are any of these possible?

