升级水插件

This commit is contained in:
2026-01-08 22:30:55 +08:00
parent febff82d24
commit ca68084264
415 changed files with 18138 additions and 7134 deletions

View File

@@ -29,14 +29,14 @@
#include "Packages/com.waveharmonic.crest/Runtime/Shaders/Library/Utility/Depth.hlsl"
#if CREST_URP
#ifndef CREST_HDRP
#if (SHADERPASS == SHADERPASS_MOTION_VECTORS)
#define _TRANSPARENT_WRITES_MOTION_VEC 1
#endif
#endif
#if _TRANSPARENT_WRITES_MOTION_VEC
#define m_Slice clamp(_Crest_LodIndex + (isMotionVectors ? g_Crest_LodChange : 0), 0, g_Crest_LodCount)
#define m_Slice clamp((int)_Crest_LodIndex + (isMotionVectors ? g_Crest_LodChange : 0), 0, g_Crest_LodCount)
#define m_Make(slice) Make(slice, isMotionVectors)
#else
#define m_Slice _Crest_LodIndex
@@ -146,7 +146,7 @@ void Vertex(m_Properties)
o_PositionWS.xz -= g_Crest_WaterCenter.xz;
o_PositionWS.xz *= g_Crest_WaterScaleChange;
o_PositionWS.xz += g_Crest_WaterCenter.xz;
o_PositionWS += g_Crest_WaterCenterDelta;
o_PositionWS.xz += g_Crest_WaterCenterDelta;
}
#endif
}