I understand how a simple GLSL fog shader works, but how can it be applied? Applying it directly to a terrain mesh does not produce the desired "fog" result. How would one mimic the built-in fog effects of OpenGL with a shader? The only thing that I can think of is applying the shader to a series of encased spheres around the camera, but that seems like a lot of work for just some fog.
Update: Some images to further explain.
This is the shader I have applied to my terrain mesh, and the result is not what I want:
这是我想要复制的那种效果:
http://mw2.google.com/mw-panoramio/photos/medium/4503932.jpg