TerrainQuantization.js 438 B

12345678910111213141516171819202122232425
  1. /**
  2. * This enumerated type is used to determine how the vertices of the terrain mesh are compressed.
  3. *
  4. * @enum {Number}
  5. *
  6. * @private
  7. */
  8. const TerrainQuantization = {
  9. /**
  10. * The vertices are not compressed.
  11. *
  12. * @type {Number}
  13. * @constant
  14. */
  15. NONE: 0,
  16. /**
  17. * The vertices are compressed to 12 bits.
  18. *
  19. * @type {Number}
  20. * @constant
  21. */
  22. BITS12: 1,
  23. };
  24. export default Object.freeze(TerrainQuantization);