Corresponding elevation in post-processing

this is the fog demo fog ,i want to change the height of fog by elevation.