31 lines
797 B
C#
31 lines
797 B
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Reflection;
|
|
using Sirenix.OdinInspector;
|
|
using SLSUtilities.General;
|
|
using UnityEngine;
|
|
using UnityEngine.Rendering;
|
|
using UnityEngine.Rendering.Universal;
|
|
|
|
namespace Ichni
|
|
{
|
|
public class PostProcessingManager : Singleton<PostProcessingManager>
|
|
{
|
|
public static Volume GlobalVolume => instance.globalVolume;
|
|
|
|
[ShowInInspector]
|
|
public Volume globalVolume;
|
|
|
|
protected override void Awake()
|
|
{
|
|
base.Awake();
|
|
if (globalVolume != null)
|
|
{
|
|
// Force instantiate the volume profile on awake so it doesn't happen mid-game
|
|
_ = globalVolume.profile;
|
|
}
|
|
}
|
|
}
|
|
} |