Why Fog apply only terrain and not skybox / camera view ?

I’m using Unity 5.6.4 (I don’t want to upgrade for the moment to 2017 for legacy game and code reason) .

I’m trying to apply FOG effect, to my camera First person view.

I’ve tried 2 different way:

1- Lighting → Apply Fog

2- Legacy Image Effect → Global Fog Script

Either apply Fot only to terrain and not Skybox, or in other words, to my entire camera…

What I’m wrong ?

Thanks

EDIT I’ve upgraded to 2017.2 but I can’t find EXLCUDE FOG TO SKYBOX (yes/no) options like here is indicated Unity - Manual: Post-processing and full-screen effects

1 Answer

1

That’s just how fog works. It renders based on distance to the camera; and as the skybox doesn’t technically exist, it has a maximum distance by default, thus either the skybox will be intentionally ignored, or the whole thing will be filled with fog. The only fix to this is to write a custom fog effect.

Yes that is exactly right