I am trying to fix some issues with my projected grid ocean.
One big issue is the waves near the camera creates holes when the edge-vertice closest to the camera moves into the frustrum.
I would like to move the grid back abit, “behind the camera”, along the xz-axis to solve this, something like:
gl_Position.xz -= 5.0 * viewMatrix.xz
But I don’t understand how.