I'm in the process of making a tool that requires rendered texture to follow the contours of a piece of clothing. An example would be this website https://knyttan.com/editor/jumper-editor/. The effect here is achieved by using a colour map:
I looked at the shaders that are used for this and it seems that the texture offset is calculated based on the colour channels from this map.
Now I was wondering if this is a complete bespoke way of doing this, or if this is a known technique and if it is what is it called ?