升级6.4.升级水,升级天气

This commit is contained in:
2026-04-05 00:26:54 +08:00
parent 63bc9b5536
commit 5f7cbfb713
635 changed files with 34718 additions and 22567 deletions

View File

@@ -12,11 +12,6 @@ namespace WaveHarmonic.Crest
[@HelpURL("Manual/Waves.html#dynamic-waves-settings")]
public sealed partial class DynamicWavesLodSettings : LodSettings
{
[SerializeField, HideInInspector]
#pragma warning disable 414
int _Version = 0;
#pragma warning restore 414
[Header("Simulation")]
[Tooltip("How much energy is dissipated each frame.\n\nHelps simulation stability, but limits how far ripples will propagate. Set this as large as possible/acceptable. Default is 0.05.")]
@@ -52,5 +47,14 @@ namespace WaveHarmonic.Crest
[@GenerateAPI]
[SerializeField]
internal float _GravityMultiplier = 1f;
[@Heading("Culling")]
[Tooltip("Adds padding to water chunk bounds.\n\nDynamic Waves displaces the surface which can push vertices outside of the chunk bounds leading to culling issues. This value adds padding to the chunk bounds to mitigate this.")]
[@GenerateAPI]
[@DecoratedField]
[@SerializeField]
internal float _VerticalDisplacementCullingContributions = 5f;
}
}

View File

@@ -12,12 +12,6 @@ namespace WaveHarmonic.Crest
[@HelpURL("Manual/WaterAppearance.html#foam-settings")]
public sealed partial class FoamLodSettings : LodSettings
{
[SerializeField, HideInInspector]
#pragma warning disable 414
int _Version = 0;
#pragma warning restore 414
[Header("General settings")]
[Tooltip("Foam will not exceed this value in the simulation which can be used to prevent foam from accumulating too much.")]

View File

@@ -1,14 +1,14 @@
// Crest Water System
// Copyright © 2024 Wave Harmonic. All rights reserved.
using UnityEngine;
using WaveHarmonic.Crest.Internal;
namespace WaveHarmonic.Crest
{
/// <summary>
/// Base class for simulation settings.
/// </summary>
public abstract partial class LodSettings : ScriptableObject
public abstract partial class LodSettings : CustomScriptableObject
{
}