Original Post
In a simple vertex shader I wrote to animate a texture, every few seconds the texture stops moving then starts again. Here is the vertex shader. Pretty simple. Time is calculated by somethingg like this static float fTime = 0.0f; fTime += fDT; Where fDT is the change in time since last frame.
VS_OUTPUT WaterVS( float4 Pos : POSITION, float4 Normal : NORMAL, float2 Tex : TEXCOORD0 )
{
VS_OUTPUT output = (VS_OUTPUT) 0;
output.Pos = mul( Pos, matWorldViewProj );
output.Tex.x = Tex.x + time;
output.Tex.y = Tex.y + time;
output.Norm = Normal;
return output;
}