Version: 2023.2
言語: 日本語
public static float fogDensity ;

説明

フォグの密度指数

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.