CubismSortingMode.cs 980 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /**
  2. * Copyright(c) Live2D Inc. All rights reserved.
  3. *
  4. * Use of this source code is governed by the Live2D Open Software license
  5. * that can be found at https://www.live2d.com/eula/live2d-open-software-license-agreement_en.html.
  6. */
  7. namespace Live2D.Cubism.Rendering
  8. {
  9. /// <summary>
  10. /// <see cref="Core.CubismDrawable"/> render sort modes.
  11. /// </summary>
  12. public enum CubismSortingMode
  13. {
  14. /// <summary>
  15. /// Painter's algorithm sorting that works well with other Unity elements. Offsets by depth.
  16. /// </summary>
  17. BackToFrontZ,
  18. /// <summary>
  19. /// Offset by depth from front to back.
  20. /// </summary>
  21. FrontToBackZ,
  22. /// <summary>
  23. /// Offsets by Unity's sorting order from back to front.
  24. /// </summary>
  25. BackToFrontOrder,
  26. /// <summary>
  27. /// Offsets by Unity's sorting order from front to back.
  28. /// </summary>
  29. FrontToBackOrder
  30. }
  31. }