If there is a “set” in the command, this overwrites the existing fog, so the fog under lava, water, in nether and so on will also be changed.