CullFace.js 606 B

123456789101112131415161718192021222324252627282930313233
  1. import WebGLConstants from "../Core/WebGLConstants.js";
  2. /**
  3. * Determines which triangles, if any, are culled.
  4. *
  5. * @enum {number}
  6. */
  7. const CullFace = {
  8. /**
  9. * Front-facing triangles are culled.
  10. *
  11. * @type {number}
  12. * @constant
  13. */
  14. FRONT: WebGLConstants.FRONT,
  15. /**
  16. * Back-facing triangles are culled.
  17. *
  18. * @type {number}
  19. * @constant
  20. */
  21. BACK: WebGLConstants.BACK,
  22. /**
  23. * Both front-facing and back-facing triangles are culled.
  24. *
  25. * @type {number}
  26. * @constant
  27. */
  28. FRONT_AND_BACK: WebGLConstants.FRONT_AND_BACK,
  29. };
  30. export default Object.freeze(CullFace);