Hello everyone!
I’m currently trying to find a solution to have objects unaffected by fog in a scene.
Is it possible to do it in Unity and if yes, how?
Thanks!
Hello everyone!
I’m currently trying to find a solution to have objects unaffected by fog in a scene.
Is it possible to do it in Unity and if yes, how?
Thanks!
You can alter the shader so it has {Fog Mode Off} in it. There’s a few topics around with more detail if you need it.
–Eric
I think he means having some objects unaffected while it’s turned on.
Yes, that’s what I understood. My answer is still the same.
To elaborate a bit (though like I said, a search will find this info): get the shader source, put “Fog {Mode Off}” in the one you want to use, add “NoFog” or something to the name, and use the NoFog shader on any objects you don’t want to be affected by fog.
–Eric
Totally awesome! Exactly what I needed! Many many thanks! ![]()