For smaller values of flowSpeed everything is fine, but for larger values the water surface is getting extremely distorted. Is there any solution to this problem?
I’m switching between the two sampled values based on offset, as in the original article.
For some reason the UVs get stretched at large speeds. Any ideas?
I was able to solve the issue. In case somebody else encounters the problem, you just have to set the cycle to a much lower value. The optimal value for cycle is somewhere around: cycle = 15.0f;