智慧水务管理系统 - 精河县供水工程综合管理平台

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. // @ts-check
  2. import WebGLConstants from "../Core/WebGLConstants.js";
  3. /**
  4. * Determines how two pixels' values are combined.
  5. *
  6. * @enum {number}
  7. */
  8. const BlendEquation = {
  9. /**
  10. * Pixel values are added componentwise. This is used in additive blending for translucency.
  11. *
  12. * @type {number}
  13. * @constant
  14. */
  15. ADD: WebGLConstants.FUNC_ADD,
  16. /**
  17. * Pixel values are subtracted componentwise (source - destination). This is used in alpha blending for translucency.
  18. *
  19. * @type {number}
  20. * @constant
  21. */
  22. SUBTRACT: WebGLConstants.FUNC_SUBTRACT,
  23. /**
  24. * Pixel values are subtracted componentwise (destination - source).
  25. *
  26. * @type {number}
  27. * @constant
  28. */
  29. REVERSE_SUBTRACT: WebGLConstants.FUNC_REVERSE_SUBTRACT,
  30. /**
  31. * Pixel values are given to the minimum function (min(source, destination)).
  32. *
  33. * This equation operates on each pixel color component.
  34. *
  35. * @type {number}
  36. * @constant
  37. */
  38. MIN: WebGLConstants.MIN,
  39. /**
  40. * Pixel values are given to the maximum function (max(source, destination)).
  41. *
  42. * This equation operates on each pixel color component.
  43. *
  44. * @type {number}
  45. * @constant
  46. */
  47. MAX: WebGLConstants.MAX,
  48. };
  49. Object.freeze(BlendEquation);
  50. export default BlendEquation;