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

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