I successfully implemented the equations from GPU Gems article for Gerstner waves.
Now I want to have the simple directional waves replaced by circular waves that concentrically emerge from a point.
From the GPU Gems article as well as a paper “Real-Time Rendering of Procedurally Generated Planets” by Florian Michelic, this should be possible by simply replacing the direction by the normalized vector between vertex position minus wave center position.
For testing, I do it in my material function by having a circular parameter to lerp between wave direction and wavecenter version, so I can be sure, that rest of the code is identical.
The result looks bad, as on the left image below: waves are strangely moving around, no concentic movement at all. The simple direction wave works fine.
I did a visualization of my direction vectors using the following shader code instead:
Result of this looks good to me:
I’m a little bit lost. I found this thread: [https://answers.unrealengine.com/questions/892224/view.html] - but it just confirms, that I seem to do it correctly.
I feel somewhat lost at the moment not having any idea how to proceed and being too blind to see the mistake I’m doing…