title: Shader to distort texture by shape map
body: <p>I do not have enough knowledge.
  What methods can be used to solve this problem.</p>
  
  <p>For example from another <a href="https://graphicdesign.stackexchange.com/questions/125408/how-to-distort-an-image-inside-a-shape">question</a>: 
  <a href="https://i.stack.imgur.com/vazHJ.jpg" rel="nofollow noreferrer">enter image description here</a></p>
  
  <p>In fact, my task is a little easier. Because the map looks different:
  <a href="https://i.stack.imgur.com/bxk90.jpg" rel="nofollow noreferrer">enter image description here</a></p>
  
  <p>In my head I see such a picture:
  <a href="https://i.stack.imgur.com/c6UBT.jpg" rel="nofollow noreferrer">enter image description here</a></p>
  
  <p>However, I do not have a scientific degree in trigonometry or sufficient experience with graphics to understand what I need to solve.</p>
  
  <p>Please tell me what methodologies should I study to understand this?</p>
  
  <p>The ready-made solution is also interesting if you attach the theoretical part to the solution.</p>