Hi,
i made an ocean Compute shader based on tessendorfs approach.
It looks good so far and runs smooth( lags in video due to the video recording software).
My Problem is that its not tileable at the moment. I know that i have to find sin waves that repeats n = {N} times. But i don’t know how to get the length of the final sin wave so i can pick possible wavelengths.
Is there a mathematical method to calculate it fast?