Coincidentally I just posted a blog post on fog rendering, in particular with exponential height fog, yesterday: https://forwardscattering.org/post/72