升级6.4.升级水,升级天气
This commit is contained in:
@@ -34,25 +34,6 @@ namespace WaveHarmonic.Crest
|
||||
return;
|
||||
}
|
||||
|
||||
var water = s_Instance._Water;
|
||||
|
||||
if (!water._ShadowLod.Enabled)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
#if UNITY_EDITOR
|
||||
if (!WaterRenderer.IsWithinEditorUpdate)
|
||||
{
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
// Only sample shadows for the main camera.
|
||||
if (!ReferenceEquals(water.Viewer, camera))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (camera.TryGetComponent<UniversalAdditionalCameraData>(out var cameraData))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user