TextureModifyGroup.cs 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. using System.Collections.Generic;
  2. using UnityEngine;
  3. namespace MTE
  4. {
  5. internal struct TextureModifyGroup
  6. {
  7. public GameObject gameObject;
  8. public int splatIndex;
  9. public int splatTotal;
  10. public Texture2D controlTexture0;
  11. public Texture2D controlTexture1;
  12. public Texture2D controlTexture2;
  13. public Rect texelRect;
  14. public Vector2 minUV;
  15. public Vector2 maxUV;
  16. public TextureModifyGroup(GameObject gameObject, int splatIndex, int splatTotal, Texture2D controlTexture0, Texture2D controlTexture1, Rect texelRect, Vector2 minUV, Vector2 maxUV)
  17. {
  18. this.gameObject = gameObject;
  19. this.splatIndex = splatIndex;
  20. this.splatTotal = splatTotal;
  21. this.controlTexture0 = controlTexture0;
  22. this.controlTexture1 = controlTexture1;
  23. this.controlTexture2 = null;
  24. this.texelRect = texelRect;
  25. this.minUV = minUV;
  26. this.maxUV = maxUV;
  27. }
  28. public TextureModifyGroup(GameObject gameObject, int splatIndex, int splatTotal,
  29. Texture2D controlTexture0, Texture2D controlTexture1, Texture2D controlTexture2,
  30. Rect texelRect, Vector2 minUV, Vector2 maxUV)
  31. {
  32. this.gameObject = gameObject;
  33. this.splatIndex = splatIndex;
  34. this.splatTotal = splatTotal;
  35. this.controlTexture0 = controlTexture0;
  36. this.controlTexture1 = controlTexture1;
  37. this.controlTexture2 = controlTexture2;
  38. this.texelRect = texelRect;
  39. this.minUV = minUV;
  40. this.maxUV = maxUV;
  41. }
  42. }
  43. }