Visibility.js 774 B

12345678910111213141516171819202122232425262728293031323334
  1. /**
  2. * This enumerated type is used in determining to what extent an object, the occludee,
  3. * is visible during horizon culling. An occluder may fully block an occludee, in which case
  4. * it has no visibility, may partially block an occludee from view, or may not block it at all,
  5. * leading to full visibility.
  6. *
  7. * @enum {number}
  8. */
  9. const Visibility = {
  10. /**
  11. * Represents that no part of an object is visible.
  12. *
  13. * @type {number}
  14. * @constant
  15. */
  16. NONE: -1,
  17. /**
  18. * Represents that part, but not all, of an object is visible
  19. *
  20. * @type {number}
  21. * @constant
  22. */
  23. PARTIAL: 0,
  24. /**
  25. * Represents that an object is visible in its entirety.
  26. *
  27. * @type {number}
  28. * @constant
  29. */
  30. FULL: 1,
  31. };
  32. export default Object.freeze(Visibility);