升级水插件
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// Crest Water System
|
||||
// Crest Water System
|
||||
// Copyright © 2024 Wave Harmonic. All rights reserved.
|
||||
|
||||
using System.Collections.Generic;
|
||||
@@ -42,7 +42,7 @@ namespace WaveHarmonic.Crest
|
||||
internal Material _BelowSurfaceMaterial;
|
||||
|
||||
[Tooltip("Overrides the Water Renderer's volume material when the camera is inside the bounds.")]
|
||||
[@MaterialField("Crest/Underwater", name: "Underwater", title: "Create Underwater Material")]
|
||||
[@MaterialField(UnderwaterRenderer.k_ShaderNameEffect, name: "Underwater", title: "Create Underwater Material")]
|
||||
[@AttachMaterialEditor]
|
||||
[@GenerateAPI]
|
||||
[SerializeField]
|
||||
@@ -52,13 +52,14 @@ namespace WaveHarmonic.Crest
|
||||
bool _RecalculateRect = true;
|
||||
bool _RecalculateBounds = true;
|
||||
|
||||
internal Material _MotionVectorMaterial;
|
||||
|
||||
sealed class ClipInput : ILodInput
|
||||
{
|
||||
readonly WaterBody _Owner;
|
||||
readonly Transform _Transform;
|
||||
|
||||
public bool Enabled => WaterRenderer.Instance._ClipLod._DefaultClippingState == DefaultClippingState.EverythingClipped;
|
||||
public bool Enabled => WaterRenderer.Instance != null && WaterRenderer.Instance._ClipLod._DefaultClippingState == DefaultClippingState.EverythingClipped;
|
||||
public bool IsCompute => true;
|
||||
public int Pass => -1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user