Is there any way to disable fog from certain objects ? I have a scene where fog is enabled but I would like it so my clouds which are a game object don’t receive the fog layer. Is there any way to get around this ?
The method described in @Eric5h5’s answer no longer works when applied to the Unity 5+ standard shader. Instead, you need to remove the lines that say:
#pragma multi_compile_fog
I’ve done this on the standard shader for 5.2.1f1 here:
https://gist.github.com/fadookie/ea790779161b974536e7
Use a shader which doesn’t have fog. If necessary, you can use an existing shader and include the line “Fog { Mode Off }”.