XftTools.cs 236 B

1234567891011121314
  1. using System;
  2. using UnityEngine;
  3. namespace Xft
  4. {
  5. public class XftTools
  6. {
  7. public static void TopLeftUVToLowerLeft(ref Vector2 tl, ref Vector2 dimension)
  8. {
  9. tl.y = 1f - tl.y;
  10. dimension.y = -dimension.y;
  11. }
  12. }
  13. }