trying to change a variable inside a post process material.

Ok… I got it tested and it works form me.
I think this might be your problem. Even if it’s not, something happens and you fail to set Fog Mist

Here is my setup:

Here is the result: