Smooth infinite water system

Hi,

Well I have make a new infinite DayLight Simple Water system with the custom Unity’s prefab, but I need to know if can make something like that but only with water:

My code:

public GameObject PlayerObject;
public WaterSimple water;
public int WaterLevel = 20;

public void InfiniteWater() {
	water.transform.position = new Vector3(PlayerObject.transform.position.x, WaterLevel, PlayerObject.transform.position.z);
}

It only moves with the player, but It’s not cool, because if you see the water animation it moves with you…

How can I make a simple infinite water system?

Thanks in advance…

What about adjusting the UV coordinates of the water plane as you move. You could probably do it with the texture offset value.

This way the plane can follow the player but the water animation still has the illusion that its not following you.

An other technique is to just use a tile system which creates new tiles in front of the player as they approach and remove the old ones behind them. However the challenge with water is getting the seems to join, if your using water that has moving waves(vertex shader stuff) then joining seams could be tricky and may require some form of procedural mesh generation.