[enhancement][liquid] support round rect vessel

This commit is contained in:
monitor1394
2022-04-15 13:12:19 +08:00
parent 5d6c5b5f79
commit ef5988a851

View File

@@ -624,10 +624,10 @@ namespace XUGL
vh.AddUIVertexQuad(s_Vertex); vh.AddUIVertexQuad(s_Vertex);
} }
private static void InitCornerRadius(float[] cornerRadius, float width, float height, bool horizontal, public static void InitCornerRadius(float[] cornerRadius, float width, float height, bool horizontal,
bool invert, ref float brLt, ref float brRt, ref float brRb, ref float brLb, ref bool needRound) bool invert, ref float brLt, ref float brRt, ref float brRb, ref float brLb, ref bool needRound)
{ {
if (cornerRadius == null) return; if (cornerRadius == null || cornerRadius.Length == 0) return;
if (invert) if (invert)
{ {
if (horizontal) if (horizontal)