I make infinite water on HLSL. On Nuclear Basic http://forums.nuclearglory.com/index.php?tid=4836&tpg=2
1. Make object Plane
2. Apply water shader to it
in game cycle:
Plane position = camera position
Scroll plane texture on shader automatic
//vertex shader
v2f v(a2v In)
{
v2f Out = (v2f)0;
float4 Po = float4(In.position.xyz,1);
float3 Pw = mul(Po,world).xyz;
Out.pos = Pw;
Out.eye = viewInv[3].xyz;
Out.position = mul(Po, wvp);
Out.viewpos = Out.position;
//automatic sroll water if player move
Out.uv.xy = (In.texCoord+Pw.xz)*textureScale;
Out.uv.zw = (In.texCoord2+Pw.xz)*textureScale;
return Out;
}
O! "Water mode: When checked, a water plane will appear everywhere in the scene"
http://www.leadwerks.com/werkspace/page/tutorials/_/scene-panel-r3#section3