修改为单独调整shader

This commit is contained in:
2026-07-06 16:26:21 +08:00
parent ed9b2923e4
commit ea9ff6dc08
6 changed files with 38 additions and 8 deletions
@@ -192,7 +192,7 @@ Shader "IndianOcean/WaterReflection"
// UI 裁剪矩形裁剪
#ifdef UNITY_UI_CLIP_RECT
float2 clipPos = positionCS.xy;
float2 clipPos = input.positionCS.xy;
float clip = 1.0;
clip *= step(0.0, clipPos.x - _ClipRect.x);
clip *= step(0.0, clipPos.y - _ClipRect.y);