AlphaMode.js 653 B

123456789101112131415161718192021222324252627282930313233
  1. /**
  2. * The alpha rendering mode of the material.
  3. *
  4. * @enum {string}
  5. * @private
  6. */
  7. const AlphaMode = {
  8. /**
  9. * The alpha value is ignored and the rendered output is fully opaque.
  10. *
  11. * @type {string}
  12. * @constant
  13. */
  14. OPAQUE: "OPAQUE",
  15. /**
  16. * The rendered output is either fully opaque or fully transparent depending on the alpha value and the specified alpha cutoff value.
  17. *
  18. * @type {string}
  19. * @constant
  20. */
  21. MASK: "MASK",
  22. /**
  23. * The rendered output is composited onto the destination with alpha blending.
  24. *
  25. * @type {string}
  26. * @constant
  27. */
  28. BLEND: "BLEND",
  29. };
  30. export default Object.freeze(AlphaMode);