I need to create a wave pattern as depicted in the image. The surface for this pattern is predefined, so I cannot simply apply it to any random rectangle. It is crucial that the waves gradually fade out towards the edges of the surface, including any cutouts, such as the window shown in the picture.
Furthermore, there should be a seamless transition between two waves, without any flat spots.
Do you have any suggestions on how I can accomplish this, or perhaps you have similar scripts that could be useful?