Fog

Linear Fog

c = fog coordinates,

S, E = start and end

$$f = \frac{E - c}{ E - S}$$

Exponential Fog

d = fog density

$$f = \frac{1}{2^{cd}} = 2^{-cd}$$

Exponential Squared Fog

$$f = \frac{1}{2^{cd^2}} = 2^{- (cd)^2}$$