Files
beyond/Assets/Scripts/FogDefaultSettings.cs
2025-07-17 00:34:18 +02:00

31 lines
820 B
C#
Raw Permalink Blame History

using UnityEngine;
/// <summary>
/// JEDYNE <20>RÓD£O PRAWDY o domyœlnej mgle.
/// UmieϾ ten skrypt na JEDNYM obiekcie w scenie, np. "_FogManager".
/// </summary>
public class FogDefaultSettings : MonoBehaviour
{
public static FogDefaultSettings Instance { get; private set; }
[Header("Globalne Domyœlne Ustawienia Mg³y URP")]
public bool fogEnabled = true;
public Color fogColor = new Color(0.7f, 0.7f, 0.7f);
public FogMode fogMode = FogMode.Exponential;
[Range(0f, 1f)]
public float fogDensity = 0.01f;
public float fogStartDistance = 50f;
public float fogEndDistance = 1000f;
private void Awake()
{
if (Instance != null && Instance != this)
{
Destroy(gameObject);
}
else
{
Instance = this;
}
}
}