That’s the effect. The fog decreases vertically by height constrained by distance.
I also consider the camera height as the higher you’re off the ground the more the fog below/closer to you increases, but you only need that if you can fly or such. Considering that, once being above the top height of the fog you only see vertical fog.