I'd like to write a shader that works like the UV Along Stroke node from Blender.
Basically, I need UV coordinates that follow the edge of an object and wrap.
For clarity, I know how to do edge detection. But I need flowing UVs along the edges.
I'm OK with any shading language, but I honestly can't wrap my head around the math involved.
Ideally I'd like to do this without baking data into the mesh itself, but as a last resort I'm willing to consider it.
Any idea how to get started?