The density of the exponential fog.
Fog density is used by Exponential and ExponentialSquared modes.
/// Set for density RenderSettings.fogDensity = 0.1; // And enable fog RenderSettings.fog = true;
using UnityEngine; using System.Collections;
public class ExampleClass : MonoBehaviour { void Example() { // Set the fog color to be blue RenderSettings.fogDensity = 0.1f;
// And enable fog RenderSettings.fog = true; } }
See Also: RenderSettings.fogMode.