Hi!
I’m working on a custom shader with some fog and I would like to stop the fog effect when the fog option in the scene window is off.
Is there a variable that I can grab in my shader with the value of the scene show fog option ?
Thanks ^^
Hi!
I’m working on a custom shader with some fog and I would like to stop the fog effect when the fog option in the scene window is off.
Is there a variable that I can grab in my shader with the value of the scene show fog option ?
Thanks ^^
ok I figured it myself, I check :
if (unity_FogParams.x > 0)