The problem is the GL_EXP2 mode.
If you check the formula for the fog mixing coefficient in GL_EXP2 mode:
f = e ^ ((-density * z) ^ 2) (clamped to [0..1])
The fog curve is set exclusively with the density parameter. If your range is 0.1-100, I would recommend a density of around 0.001.
In any case, for fog testing it is best to start first with GL_LINEAR mode. It is just easier to visualize.
source share