setWireframe.lua 704 B

1234567891011121314151617181920212223242526272829
  1. return {
  2. tag = 'pipeline',
  3. summary = 'Enable or disable wireframe rendering.',
  4. description = [[
  5. Enables or disables wireframe rendering. This will draw all triangles as lines while active.
  6. It's intended to be used for debugging, since it usually has a performance cost.
  7. ]],
  8. arguments = {
  9. enable = {
  10. type = 'boolean',
  11. description = 'Whether wireframe rendering should be enabled.'
  12. }
  13. },
  14. returns = {},
  15. variants = {
  16. {
  17. arguments = { 'enable' },
  18. returns = {}
  19. }
  20. },
  21. notes = [[
  22. Wireframe rendering is disabled by default.
  23. There is currently no way to change the thickness of the lines.
  24. ]],
  25. related = {
  26. 'Pass:setMeshMode'
  27. }
  28. }