CullFace.js 814 B

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