This sample shows a basic implementation of fogging without using the fixed function fogging render states. By avoiding the fixed function render states the fogging will work with Shader Model 3.0 and the Xbox 360.
Use the gamepad thumbsticks to control the camera, button Y to reset. Use the dpad to edit some of the shader parameters.
The building model and texture are from the Microsoft Racing Game starter kit
Edit: Updated to fix a bug in calculating the camera position.