RenderSettings.fog
public static bool fog;
Description 描述
Is fog enabled?
using UnityEngine; using System.Collections;
public class ExampleClass : MonoBehaviour { void Example() { // Enable fog RenderSettings.fog = true; } }
See Also: RenderSettings.fogMode.