Help with ocean wave camera phase shift

Going crazy! working on this editable mesh ocean and the camera movement speeds up the waves.
I know exactly why but i cant find the solution!

My mesh geometry is always following the camera, the gerstner wave formula is applied in world space coordinates. (each vertex is converted from local to world space, the wave function is applied, then converted back to object space). As the camera moves, the cframe of the mesh moves along, therefore speeding up the wave function. A video & my code can be found below.

Any help would be greatly appreciated!

local t = os.clock()

	
	local camXZ = cam.CFrame.Position * Vector3.new(1,0,1)
	local plane_Cframe = CFrame.new(plane.Position + camXZ  - transformed_size/2 ) 
	
	for i,vertex in vertices do

		local vertex_local_pos = clientoceanmodule.vpositions[vertex] 
		
		local vertex_world_pos = plane_Cframe:PointToWorldSpace(vertex_local_pos) 
	
		
		local worldpos_snapped = Snap( vertex_world_pos  , STEP) 

		local gerstnerpos = oceanwaves1(worldpos_snapped , t) 
		local gerstner_local = plane_Cframe:PointToObjectSpace(gerstnerpos)
		
		emesh:SetPosition(vertex, gerstner_local + Vector3.yAxis*WATERSURFACEY)
		
	end


	
	

	task.wait()

Temporary fix: slowly lerping the camera towards the camera position at time t from time t-1.