StencilAction.lua 1020 B

123456789101112131415161718192021222324252627282930313233343536
  1. return {
  2. summary = 'Different stencil operations available.',
  3. description = [[
  4. How to modify pixels in the stencil buffer when using `lovr.graphics.stencil`.
  5. ]],
  6. values = {
  7. {
  8. name = 'replace',
  9. description = 'Stencil values will be replaced with a custom value.',
  10. },
  11. {
  12. name = 'increment',
  13. description = 'Stencil values will increment every time they are rendered to.',
  14. },
  15. {
  16. name = 'decrement',
  17. description = 'Stencil values will decrement every time they are rendered to.',
  18. },
  19. {
  20. name = 'incrementwrap',
  21. description = [[
  22. Similar to `increment`, but the stencil value will be set to 0 if it exceeds 255.
  23. ]],
  24. },
  25. {
  26. name = 'decrementwrap',
  27. description = [[
  28. Similar to `decrement`, but the stencil value will be set to 255 if it drops below 0.
  29. ]],
  30. },
  31. {
  32. name = 'invert',
  33. description = 'Stencil values will be bitwise inverted every time they are rendered to.'
  34. }
  35. }
  36. }