AttributeType.js 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. import freezeObject from '../Core/freezeObject.js';
  2. /**
  3. * An enum describing the attribute type for glTF and 3D Tiles.
  4. *
  5. * @exports AttributeType
  6. *
  7. * @private
  8. */
  9. var AttributeType = {
  10. /**
  11. * The attribute is a single component.
  12. *
  13. * @type {String}
  14. * @constant
  15. */
  16. SCALAR : 'SCALAR',
  17. /**
  18. * The attribute is a two-component vector.
  19. *
  20. * @type {String}
  21. * @constant
  22. */
  23. VEC2 : 'VEC2',
  24. /**
  25. * The attribute is a three-component vector.
  26. *
  27. * @type {String}
  28. * @constant
  29. */
  30. VEC3 : 'VEC3',
  31. /**
  32. * The attribute is a four-component vector.
  33. *
  34. * @type {String}
  35. * @constant
  36. */
  37. VEC4 : 'VEC4',
  38. /**
  39. * The attribute is a 2x2 matrix.
  40. *
  41. * @type {String}
  42. * @constant
  43. */
  44. MAT2 : 'MAT2',
  45. /**
  46. * The attribute is a 3x3 matrix.
  47. *
  48. * @type {String}
  49. * @constant
  50. */
  51. MAT3 : 'MAT3',
  52. /**
  53. * The attribute is a 4x4 matrix.
  54. *
  55. * @type {String}
  56. * @constant
  57. */
  58. MAT4 : 'MAT4'
  59. };
  60. export default freezeObject(AttributeType);