Gradually change fog density during player movement

Hi there,
I’m working on a scene where you come out of a cave into a forest covered in dense fog.
I am using an exponential height fog, and I would like it to become more and more dense the further you move away from the cave.
Is this possible?

Thank you in advance!
Rasmus