summaryrefslogtreecommitdiff
path: root/Assets/uGUI-2017.1/UnityEngine.UI/UI/Core/VertexModifiers
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-04-12 09:42:52 +0800
committerchai <chaifix@163.com>2021-04-12 09:42:52 +0800
commit6aed8a5cf13145e6291e4e95ee6774d5e5b4b3b8 (patch)
tree7dc78e64917910dc57f472be9bf5edb610b741d0 /Assets/uGUI-2017.1/UnityEngine.UI/UI/Core/VertexModifiers
parentb357a6a6d914e46c2c782f215e9f566f92663850 (diff)
+effect
Diffstat (limited to 'Assets/uGUI-2017.1/UnityEngine.UI/UI/Core/VertexModifiers')
-rw-r--r--Assets/uGUI-2017.1/UnityEngine.UI/UI/Core/VertexModifiers/Shadow.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/Assets/uGUI-2017.1/UnityEngine.UI/UI/Core/VertexModifiers/Shadow.cs b/Assets/uGUI-2017.1/UnityEngine.UI/UI/Core/VertexModifiers/Shadow.cs
index c0b7cfb..e0a813c 100644
--- a/Assets/uGUI-2017.1/UnityEngine.UI/UI/Core/VertexModifiers/Shadow.cs
+++ b/Assets/uGUI-2017.1/UnityEngine.UI/UI/Core/VertexModifiers/Shadow.cs
@@ -76,6 +76,7 @@ namespace UnityEngine.UI
}
}
+ //x,yÊÇÆ«ÒÆÁ¿
protected void ApplyShadowZeroAlloc(List<UIVertex> verts, Color32 color, int start, int end, float x, float y)
{
UIVertex vt;
@@ -93,9 +94,11 @@ namespace UnityEngine.UI
v.x += x;
v.y += y;
vt.position = v;
+
var newColor = color;
if (m_UseGraphicAlpha)
newColor.a = (byte)((newColor.a * verts[i].color.a) / 255);
+
vt.color = newColor;
verts[i] = vt;
}