GLTFSkin.cs 1007 B

123456789101112131415161718192021222324252627
  1. using System.Runtime.Serialization;
  2. namespace GLTFExport.Entities
  3. {
  4. [DataContract]
  5. public class GLTFSkin : GLTFIndexedChildRootProperty
  6. {
  7. /// <summary>
  8. /// The index of the accessor containing the floating-point 4x4 inverse-bind matrices.
  9. /// The default is that each matrix is a 4x4 identity matrix, which implies that inverse-bind matrices were pre-applied.
  10. /// </summary>
  11. [DataMember(EmitDefaultValue = false)]
  12. public int? inverseBindMatrices { get; set; }
  13. /// <summary>
  14. /// The index of the node used as a skeleton root. When undefined, joints transforms resolve to scene root.
  15. /// </summary>
  16. [DataMember(EmitDefaultValue = false)]
  17. public int? skeleton { get; set; }
  18. /// <summary>
  19. /// Indices of skeleton nodes, used as joints in this skin.
  20. /// </summary>
  21. [DataMember(IsRequired = true)]
  22. public int[] joints { get; set; }
  23. }
  24. }