移除水
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user