移除水

This commit is contained in:
2025-06-21 21:58:06 +08:00
parent d61516a576
commit e9f76d0f11
1566 changed files with 9218 additions and 300913 deletions

View File

@@ -1,32 +0,0 @@
// Crest Water System
// Copyright © 2024 Wave Harmonic. All rights reserved.
#if UNITY_EDITOR
using UnityEngine;
using WaveHarmonic.Crest.Editor;
namespace WaveHarmonic.Crest
{
// Edit Mode.
partial class UnderwaterRenderer
{
static bool IsFogEnabledForEditorCamera(Camera camera)
{
// Check if scene view has disabled fog rendering.
if (camera.cameraType == CameraType.SceneView)
{
var sceneView = EditorHelpers.GetSceneViewFromSceneCamera(camera);
// Skip rendering if fog is disabled or for some reason we could not find the scene view.
if (sceneView == null || !sceneView.sceneViewState.fogEnabled)
{
return false;
}
}
return true;
}
}
}
#endif