指数雾效的强度。
Exponential 和 ExponentialSquared 模式会使用雾效强度。
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.