Emulated GL_NV_fog_distance for OpenGL 2.1+ path.