升级水插件

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.
#if d_UnityInputSystem && ENABLE_INPUT_SYSTEM
@@ -249,7 +249,7 @@ namespace WaveHarmonic.Crest
#if UNITY_EDITOR
if (GUI.Button(new(x, y, w, h), "Select Water Material"))
{
var path = UnityEditor.AssetDatabase.GetAssetPath(_Water.Material);
var path = UnityEditor.AssetDatabase.GetAssetPath(_Water.Surface.Material);
var asset = UnityEditor.AssetDatabase.LoadMainAssetAtPath(path);
UnityEditor.Selection.activeObject = asset;
}
@@ -415,7 +415,7 @@ namespace WaveHarmonic.Crest
GUI.color = Color.white;
// Only use Graphics.DrawTexture in EventType.Repaint events if called in OnGUI
if (Event.current.type.Equals(EventType.Repaint))
if (Event.current.type == EventType.Repaint)
{
for (var idx = 0; idx < lodData.DataTexture.volumeDepth; idx++)
{
@@ -453,7 +453,7 @@ namespace WaveHarmonic.Crest
GUI.color = Color.white;
// Only use Graphics.DrawTexture in EventType.Repaint events if called in OnGUI
if (Event.current.type.Equals(EventType.Repaint))
if (Event.current.type == EventType.Repaint)
{
for (var idx = 0; idx < data.volumeDepth; idx++)
{