MeshVertex.cs 541 B

1234567891011121314151617181920212223
  1. using UnityEngine;
  2. using UnityEditor;
  3. using System;
  4. namespace SplineMesh {
  5. [Serializable]
  6. public class MeshVertex {
  7. public Vector3 position;
  8. public Vector3 normal;
  9. public Vector2 uv;
  10. public MeshVertex(Vector3 position, Vector3 normal, Vector2 uv) {
  11. this.position = position;
  12. this.normal = normal;
  13. this.uv = uv;
  14. }
  15. public MeshVertex(Vector3 position, Vector3 normal)
  16. : this(position, normal, Vector2.zero)
  17. {
  18. }
  19. }
  20. }