升级6.4.升级水,升级天气
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Rendering.PostProcessing;
|
||||
using WaveHarmonic.Crest.Internal;
|
||||
|
||||
namespace WaveHarmonic.Crest.Examples
|
||||
{
|
||||
@@ -14,26 +15,28 @@ namespace WaveHarmonic.Crest.Examples
|
||||
[AddComponentMenu("")]
|
||||
#endif
|
||||
[ExecuteAlways, RequireComponent(typeof(PostProcessVolume))]
|
||||
sealed class LegacyPostProcessingVolume : MonoBehaviour
|
||||
sealed class LegacyPostProcessingVolume : CustomBehaviour
|
||||
{
|
||||
[SerializeField, HideInInspector]
|
||||
#pragma warning disable 414
|
||||
int _Version = 0;
|
||||
#pragma warning restore 414
|
||||
|
||||
[@Layer]
|
||||
[SerializeField]
|
||||
int _Layer;
|
||||
|
||||
readonly List<PostProcessVolume> _QuickVolumes = new();
|
||||
|
||||
void OnEnable()
|
||||
private protected override void OnEnable()
|
||||
{
|
||||
base.OnEnable();
|
||||
|
||||
if (!RenderPipelineHelper.IsLegacy)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (Helpers.IsWebGPU)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
_QuickVolumes.Clear();
|
||||
|
||||
foreach (var volume in GetComponents<PostProcessVolume>())
|
||||
|
||||
Reference in New Issue
Block a user