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

StencilFunction.js 1.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. // @ts-check
  2. import WebGLConstants from "../Core/WebGLConstants.js";
  3. /**
  4. * Determines the function used to compare stencil values for the stencil test.
  5. *
  6. * @enum {number}
  7. */
  8. const StencilFunction = {
  9. /**
  10. * The stencil test never passes.
  11. *
  12. * @type {number}
  13. * @constant
  14. */
  15. NEVER: WebGLConstants.NEVER,
  16. /**
  17. * The stencil test passes when the masked reference value is less than the masked stencil value.
  18. *
  19. * @type {number}
  20. * @constant
  21. */
  22. LESS: WebGLConstants.LESS,
  23. /**
  24. * The stencil test passes when the masked reference value is equal to the masked stencil value.
  25. *
  26. * @type {number}
  27. * @constant
  28. */
  29. EQUAL: WebGLConstants.EQUAL,
  30. /**
  31. * The stencil test passes when the masked reference value is less than or equal to the masked stencil value.
  32. *
  33. * @type {number}
  34. * @constant
  35. */
  36. LESS_OR_EQUAL: WebGLConstants.LEQUAL,
  37. /**
  38. * The stencil test passes when the masked reference value is greater than the masked stencil value.
  39. *
  40. * @type {number}
  41. * @constant
  42. */
  43. GREATER: WebGLConstants.GREATER,
  44. /**
  45. * The stencil test passes when the masked reference value is not equal to the masked stencil value.
  46. *
  47. * @type {number}
  48. * @constant
  49. */
  50. NOT_EQUAL: WebGLConstants.NOTEQUAL,
  51. /**
  52. * The stencil test passes when the masked reference value is greater than or equal to the masked stencil value.
  53. *
  54. * @type {number}
  55. * @constant
  56. */
  57. GREATER_OR_EQUAL: WebGLConstants.GEQUAL,
  58. /**
  59. * The stencil test always passes.
  60. *
  61. * @type {number}
  62. * @constant
  63. */
  64. ALWAYS: WebGLConstants.ALWAYS,
  65. };
  66. Object.freeze(StencilFunction);
  67. export default StencilFunction;