Is there a way to make fog to get thicker the lower hunger gets?

I’ve created an Insanity system which gradually depletes based of a hunger system. I’m wondering if there is a way to make it so that as insanity gets to a certain value, that it will make the fog in the overworld get thicker. Is it possible and if so, how would someone go around utilising it?