升级6.4.升级水,升级天气
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
// Crest Water System
|
||||
// Copyright © 2024 Wave Harmonic. All rights reserved.
|
||||
|
||||
#if UNITY_EDITOR
|
||||
|
||||
using UnityEngine;
|
||||
using UnityEngine.Rendering;
|
||||
|
||||
@@ -12,7 +14,12 @@ namespace WaveHarmonic.Crest
|
||||
|
||||
void OnPreRenderWaterLevelDepthTexture(Camera camera)
|
||||
{
|
||||
if (camera.cameraType != CameraType.SceneView || camera != _Water.Viewer)
|
||||
if (!_Water._CurrentSceneCameraHasMouseHover)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (camera.cameraType != CameraType.SceneView || (_Water.IsSingleViewpointMode && camera != _Water.Viewer))
|
||||
{
|
||||
return;
|
||||
}
|
||||
@@ -38,3 +45,5 @@ namespace WaveHarmonic.Crest
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user