RenderSettings.fogDensity

public static float fogDensity;

Description

The density of the exponential fog.

Fog density is used by Exponential and ExponentialSquared modes.

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { void Example() { // Set the fog density RenderSettings.fogDensity = 0.1f;

// And enable fog RenderSettings.fog = true; } }

Additional resources: RenderSettings.fogMode.


Did you find this page useful? Please give it a rating: