Manage camera fog-scripts data
When I try to use Global fog, I've got the error: "Fog does not affect opaque objects in Diferred Shading. Use Global Fog image effect". In this case I have used script "GlobalFog.cs" with the shader "GlobalFog.shader". I have put them on my camera and I had Fog effect on my main camera. That's good, but at the end of the level I have to remove fog effect. If I use Global fog, I can call RenderSettings.fog = false; But I don't have Global fog. How can I access to this script data, to turn off fog? I cannot use MainCamera.gameObject.fogDensity = 0;
               Comment
              
 
               
              Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                