GeometryAttributes-7df9bef6.js 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. /* This file is automatically rebuilt by the Cesium build process. */
  2. define(['exports', './defaultValue-94c3e563'], (function (exports, defaultValue) { 'use strict';
  3. /**
  4. * Attributes, which make up a geometry's vertices. Each property in this object corresponds to a
  5. * {@link GeometryAttribute} containing the attribute's data.
  6. * <p>
  7. * Attributes are always stored non-interleaved in a Geometry.
  8. * </p>
  9. *
  10. * @alias GeometryAttributes
  11. * @constructor
  12. */
  13. function GeometryAttributes(options) {
  14. options = defaultValue.defaultValue(options, defaultValue.defaultValue.EMPTY_OBJECT);
  15. /**
  16. * The 3D position attribute.
  17. * <p>
  18. * 64-bit floating-point (for precision). 3 components per attribute.
  19. * </p>
  20. *
  21. * @type GeometryAttribute
  22. *
  23. * @default undefined
  24. */
  25. this.position = options.position;
  26. /**
  27. * The normal attribute (normalized), which is commonly used for lighting.
  28. * <p>
  29. * 32-bit floating-point. 3 components per attribute.
  30. * </p>
  31. *
  32. * @type GeometryAttribute
  33. *
  34. * @default undefined
  35. */
  36. this.normal = options.normal;
  37. /**
  38. * The 2D texture coordinate attribute.
  39. * <p>
  40. * 32-bit floating-point. 2 components per attribute
  41. * </p>
  42. *
  43. * @type GeometryAttribute
  44. *
  45. * @default undefined
  46. */
  47. this.st = options.st;
  48. /**
  49. * The bitangent attribute (normalized), which is used for tangent-space effects like bump mapping.
  50. * <p>
  51. * 32-bit floating-point. 3 components per attribute.
  52. * </p>
  53. *
  54. * @type GeometryAttribute
  55. *
  56. * @default undefined
  57. */
  58. this.bitangent = options.bitangent;
  59. /**
  60. * The tangent attribute (normalized), which is used for tangent-space effects like bump mapping.
  61. * <p>
  62. * 32-bit floating-point. 3 components per attribute.
  63. * </p>
  64. *
  65. * @type GeometryAttribute
  66. *
  67. * @default undefined
  68. */
  69. this.tangent = options.tangent;
  70. /**
  71. * The color attribute.
  72. * <p>
  73. * 8-bit unsigned integer. 4 components per attribute.
  74. * </p>
  75. *
  76. * @type GeometryAttribute
  77. *
  78. * @default undefined
  79. */
  80. this.color = options.color;
  81. }
  82. exports.GeometryAttributes = GeometryAttributes;
  83. }));