I’m writing this post in order to answer this question, since I can’t find it elsewhere on the forums, and im sure someone else has this same question.
height sampling for gerstner waves can be achieved by offsetting the position you originally had. For an example, this would be one way to height sample:
local Y = math.sin(pos-math.cos(pos))
The more times you call the cosine, the more accurate it will get. Generally, 3-5 times is enough.
This is because when you initially get the height for the waves, you’re offsetting the sine output by the cosine output, which gives the waves the sharpness that Trochoidal Waves give.
local Y = math.sin(pos-(math.cos(math.cos(math.cos(pos))))
So this would give an accurate output of what the surface would be. It’s basically 95% accurate, however like I said you can add more cosines to increase the accuracy even further if you need to have mega-precise height sampling.