升级水插件

This commit is contained in:
2026-01-08 22:30:55 +08:00
parent febff82d24
commit ca68084264
415 changed files with 18138 additions and 7134 deletions

View File

@@ -1,4 +1,4 @@
// Crest Water System
// Crest Water System
// Copyright © 2024 Wave Harmonic. All rights reserved.
using System.Collections.Generic;
@@ -42,7 +42,7 @@ namespace WaveHarmonic.Crest
internal Material _BelowSurfaceMaterial;
[Tooltip("Overrides the Water Renderer's volume material when the camera is inside the bounds.")]
[@MaterialField("Crest/Underwater", name: "Underwater", title: "Create Underwater Material")]
[@MaterialField(UnderwaterRenderer.k_ShaderNameEffect, name: "Underwater", title: "Create Underwater Material")]
[@AttachMaterialEditor]
[@GenerateAPI]
[SerializeField]
@@ -52,13 +52,14 @@ namespace WaveHarmonic.Crest
bool _RecalculateRect = true;
bool _RecalculateBounds = true;
internal Material _MotionVectorMaterial;
sealed class ClipInput : ILodInput
{
readonly WaterBody _Owner;
readonly Transform _Transform;
public bool Enabled => WaterRenderer.Instance._ClipLod._DefaultClippingState == DefaultClippingState.EverythingClipped;
public bool Enabled => WaterRenderer.Instance != null && WaterRenderer.Instance._ClipLod._DefaultClippingState == DefaultClippingState.EverythingClipped;
public bool IsCompute => true;
public int Pass => -1;