2D water problem

Hello,
In my 2D project i added water prefab from the standard assets which comes with unity, when added it works fine (image 1.png), but when i rotate it 90 degrees to face the camera it gets weird (image 2.png).

What is the problem, i tried many options in the asset but i didn’t work, please help.


I found the solution in unity answers, edit this line in the shader code:

 temp.xyzw = wpos.xzxz * _WaveScale + _WaveOffset;

to this :

 temp.xyzw = wpos.xyxy * _WaveScale + _WaveOffset;