Visibility.js 981 B

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