StencilAction.lua 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. return {
  2. summary = 'Different ways of updating the stencil buffer.',
  3. description = 'Different ways of updating the stencil buffer with `Pass:setStencilWrite`.',
  4. values = {
  5. {
  6. name = 'keep',
  7. description = 'Stencil buffer pixels will not be changed by draws.'
  8. },
  9. {
  10. name = 'zero',
  11. description = 'Stencil buffer pixels will be set to zero.'
  12. },
  13. {
  14. name = 'replace',
  15. description = 'Stencil buffer pixels will be replaced with a custom value.'
  16. },
  17. {
  18. name = 'increment',
  19. description = 'Stencil buffer pixels will be incremented each time they\'re rendered to.'
  20. },
  21. {
  22. name = 'decrement',
  23. description = 'Stencil buffer pixels will be decremented each time they\'re rendered to.'
  24. },
  25. {
  26. name = 'incrementwrap',
  27. description = 'Similar to increment, but will wrap around to 0 when it exceeds 255.'
  28. },
  29. {
  30. name = 'decrementwrap',
  31. description = 'Similar to decrement, but will wrap around to 255 when it goes below 0.'
  32. },
  33. {
  34. name = 'invert',
  35. description = 'The bits in the stencil buffer pixels will be inverted.'
  36. }
  37. },
  38. related = {
  39. 'Pass:setStencilWrite',
  40. 'Pass:setStencilTest',
  41. 'Pass:setColorWrite'
  42. }
  43. }