Visually endless map for a train level

There are a lot of ways of doing this, but I think in this case, the train is not actually moving.

The ground and rails is either an animated material, or a small number of meshes which are moved quickly under the train, and replaced in a loop.

The only other thing moving is nearby hills, which probably use the same ‘loop replacement’ method as the ground, just much more slowly.