Here is an image representing default UV coordinates of a square image plane.
In the UV editor's XY space this is visually represented with colors:
- X axis = red
- Y axis = green
What I would like to do is distort the XY (UV on the mesh) coordinates in specific shapes using a map of 0.0 to 1.0 values. Example:
So the desired effect on the texture would be that the image texture gets warped along the path of darker to lighter pixels. Example (before/after comparison in a 2-frame animated GIF):
(Note: The above image is a simulated result, created by hand using Photoshop's Liquify tool.)
Mathematically speaking, I do not know how to map the black-to-white movement to XY values. Hopefully someone more clever with this sort of thing can help. ;-)
Edit
Just to make it clear that the grayscale gradient follows the curve (and is not a simple straight gradient masked with a curvy outline) I have created an animated GIF to demonstrate the flow:
Here is the node setup:
The curved grayscale gradient is also being used to set the alpha (although the background has been made white in the final image due to limitations of the GIF format).