setWinding.lua 718 B

123456789101112131415161718192021222324252627
  1. return {
  2. tag = 'pipeline',
  3. summary = 'Set the winding direction of triangle vertices.',
  4. description = [[
  5. Sets whether vertices in the clockwise or counterclockwise order vertices are considered the
  6. "front" face of a triangle. This is used for culling with `Pass:setCullMode`.
  7. ]],
  8. arguments = {
  9. winding = {
  10. type = 'Winding',
  11. description = 'Whether triangle vertices are ordered `clockwise` or `counterclockwise`.'
  12. }
  13. },
  14. returns = {},
  15. variants = {
  16. {
  17. arguments = { 'winding' },
  18. returns = {}
  19. }
  20. },
  21. notes = [[
  22. The default winding is counterclockwise. LÖVR's builtin shapes are wound counterclockwise.
  23. ]],
  24. related = {
  25. 'Pass:setCullMode'
  26. }
  27. }