VolumetricLineVertexData.cs 872 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. namespace VolumetricLines
  5. {
  6. public static class VolumetricLineVertexData
  7. {
  8. public static readonly Vector2[] TexCoords = {
  9. new Vector2(1.0f, 1.0f),
  10. new Vector2(1.0f, 0.0f),
  11. new Vector2(0.5f, 1.0f),
  12. new Vector2(0.5f, 0.0f),
  13. new Vector2(0.5f, 0.0f),
  14. new Vector2(0.5f, 1.0f),
  15. new Vector2(0.0f, 0.0f),
  16. new Vector2(0.0f, 1.0f),
  17. };
  18. public static readonly Vector2[] VertexOffsets = {
  19. new Vector2(1.0f, 1.0f),
  20. new Vector2(1.0f, -1.0f),
  21. new Vector2(0.0f, 1.0f),
  22. new Vector2(0.0f, -1.0f),
  23. new Vector2(0.0f, 1.0f),
  24. new Vector2(0.0f, -1.0f),
  25. new Vector2(1.0f, 1.0f),
  26. new Vector2(1.0f, -1.0f)
  27. };
  28. public static readonly int[] Indices =
  29. {
  30. 2, 1, 0,
  31. 3, 1, 2,
  32. 4, 3, 2,
  33. 5, 4, 2,
  34. 4, 5, 6,
  35. 6, 5, 7
  36. };
  37. }
  38. }