/// <summary>
 /// Draws anti-aliased line on texture
 /// </summary>
 public static void DrawAALine(this Texture2D texture, int x0, int y0, int x1, int y1, Color color)
 {
     PTUtils.DrawAALine(x0, y0, x1, y1,
                        (x, y, t) => texture.SetPixel(x, y, Color.Lerp(texture.GetPixel(x, y), color, t)));
 }
 /// <summary>
 /// Draws anti-aliased line on texture
 /// </summary>
 public static void DrawAALine(this Texture2D texture, Vector2Int v0, Vector2Int v1, Color color)
 {
     PTUtils.DrawAALine(v0, v1,
                        (x, y, t) => texture.SetPixel(x, y, Color.Lerp(texture.GetPixel(x, y), color, t)));
 }