I need instructions on how to make the fog decrease with altitude

I want the fog to simulate real life fog where the fog decreases when the player move to an higher altitude like flying an helicopter for example.

I tried using linear fog but I can only control the distance not the height.

How can I do this?

You could lerp the fog distance based on height, so lower heights would have a short fog distance and greater heights would have a long fog distance.

–Eric

1 Like