- Home /
Disabling fog for a particular camera
I have got multiple cameras. I have got an underwater script which is used to enable blue FOG when the submarine is underwater. Now I have a radar Camera which is used to show the position of the submarine. But when the submarine goes underwater, all the camera start rendering the fog. How can I disable fog for a particular camera.
I tried using this script http://wiki.unity3d.com/index.php?title=Fog_Layer . But it does not help. Please can someone tell me how to solve this.?
Answer by tanoshimi · Jan 24, 2017 at 03:52 PM
It sounds like you must be using the legacy fog system. Use global fog instead, which is an image effect component you simply attach to your camera.
Hi, I am new to unity, could you tell me how. I am using RenderSettings.fog for all the fog effects.
First import the image effect assets: Assets -> Import Package -> Effects
Then, on the inspector of your camera, click Add Component -> Global Fog.
Your answer
Follow this Question
Related Questions
Trying to change fog when entering a collider trigger! 0 Answers
How to make a good fog effect? 5 Answers
Changing camera with different culling mask 1 Answer
Third Person Fog 1 Answer
Is it possible to disable fog on a per-camera basis? 2 Answers