setDepthTest.lua 892 B

123456789101112131415161718192021222324252627282930313233343536
  1. return {
  2. tag = 'pipeline',
  3. summary = 'Configure the depth test.',
  4. description = 'Sets the depth test.',
  5. arguments = {
  6. test = {
  7. type = 'CompareMode',
  8. description = 'The new depth test to use.'
  9. }
  10. },
  11. returns = {},
  12. variants = {
  13. {
  14. arguments = { 'test' },
  15. returns = {}
  16. },
  17. {
  18. description = 'Disable the depth test.',
  19. arguments = {},
  20. returns = {}
  21. }
  22. },
  23. notes = [[
  24. When using LÖVR's default projection (reverse Z with infinite far plane) the default depth test
  25. is `gequal`, depth values of 0.0 are on the far plane and depth values of 1.0 are on the near
  26. plane, closer to the camera.
  27. A depth buffer must be present to use the depth test, but this is enabled by default.
  28. ]],
  29. related = {
  30. 'Pass:setDepthWrite',
  31. 'Pass:setDepthOffset',
  32. 'Pass:setDepthClamp',
  33. 'Pass:setStencilTest'
  34. }
  35. }