setWrap.lua 602 B

123456789101112131415161718192021
  1. return {
  2. summary = 'Set the WrapMode for the Texture.',
  3. description = [[
  4. Sets the wrap mode of a texture. The wrap mode controls how the texture is sampled when texture
  5. coordinates lie outside the usual 0 - 1 range. The default for both directions is `repeat`.
  6. ]],
  7. arguments = {
  8. {
  9. name = 'horizontal',
  10. type = 'WrapMode',
  11. description = 'How the texture should wrap horizontally.'
  12. },
  13. {
  14. name = 'vertical',
  15. type = 'WrapMode',
  16. default = 'horizontal',
  17. description = 'How the texture should wrap vertically.'
  18. }
  19. },
  20. returns = {}
  21. }