2025-09-05 10:14:45 -04:00
|
|
|
using System;
|
2025-06-03 02:42:28 -04:00
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
2025-07-10 08:42:30 -04:00
|
|
|
using System.Linq;
|
|
|
|
|
using System.Reflection;
|
|
|
|
|
using Sirenix.OdinInspector;
|
2026-03-14 03:13:10 -04:00
|
|
|
using SLSUtilities.General;
|
2025-06-03 02:42:28 -04:00
|
|
|
using UnityEngine;
|
|
|
|
|
using UnityEngine.Rendering;
|
2025-07-10 08:42:30 -04:00
|
|
|
using UnityEngine.Rendering.Universal;
|
2025-06-03 02:42:28 -04:00
|
|
|
|
|
|
|
|
namespace Ichni
|
|
|
|
|
{
|
2026-03-14 03:13:10 -04:00
|
|
|
public class PostProcessingManager : Singleton<PostProcessingManager>
|
2025-06-03 02:42:28 -04:00
|
|
|
{
|
2026-03-31 07:51:40 -04:00
|
|
|
public static Volume GlobalVolume => instance.globalVolume;
|
2026-03-14 03:13:10 -04:00
|
|
|
|
|
|
|
|
[ShowInInspector]
|
2026-03-31 07:51:40 -04:00
|
|
|
public Volume globalVolume;
|
2025-07-10 08:42:30 -04:00
|
|
|
|
2026-03-14 03:13:10 -04:00
|
|
|
protected override void Awake()
|
2025-07-10 08:42:30 -04:00
|
|
|
{
|
2026-03-14 03:13:10 -04:00
|
|
|
base.Awake();
|
2026-03-31 07:51:40 -04:00
|
|
|
if (globalVolume != null)
|
2025-07-10 08:42:30 -04:00
|
|
|
{
|
2026-03-31 07:51:40 -04:00
|
|
|
// Force instantiate the volume profile on awake so it doesn't happen mid-game
|
|
|
|
|
_ = globalVolume.profile;
|
2025-07-10 08:42:30 -04:00
|
|
|
}
|
|
|
|
|
}
|
2025-06-03 02:42:28 -04:00
|
|
|
}
|
|
|
|
|
}
|