If your only having fog problems with the shader then the shader most likely isn't setup to support fog. This is a very simple fix though as shown above by Frazzle...
...If it's not setup to use fog then when fog is enebled by the engine the entity will be "fully fogged".