GLTFCamera.cs 631 B

12345678910111213141516171819202122232425
  1. using System.Runtime.Serialization;
  2. namespace GLTFExport.Entities
  3. {
  4. [DataContract]
  5. public class GLTFCamera : GLTFIndexedChildRootProperty
  6. {
  7. public enum CameraType
  8. {
  9. perspective,
  10. orthographic
  11. }
  12. [DataMember(EmitDefaultValue = false)]
  13. public GLTFCameraOrthographic orthographic { get; set; }
  14. [DataMember(EmitDefaultValue = false)]
  15. public GLTFCameraPerspective perspective { get; set; }
  16. [DataMember(IsRequired = true)]
  17. public string type { get; set; }
  18. public GLTFNode gltfNode;
  19. }
  20. }