[DF-4168] Added distance parameter, used with fogGlow flag.
[DF-4168] Exponential ground for