The clear sky model is an implementation of the paper “Precomputed Atmospheric Scattering”, Bruneton et al.
The fog/haze is a simple Beer-Lambert exponential law, with the color based on daylight and optical depth from the top of the fog layer.
I store the transmittance (or remaining intensity) in the alpha channel of the rendered scene. This value is used to compute a separate transmittance for all light emitting objects, such as the point light halos in the last image. (See:
this thread)
1 Like