draw.lua 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. return {
  2. summary = 'Draw the Model.',
  3. description = 'Draw the Model.',
  4. arguments = {
  5. x = {
  6. type = 'number',
  7. default = '0',
  8. description = 'The x coordinate to draw the Model at.'
  9. },
  10. y = {
  11. type = 'number',
  12. default = '0',
  13. description = 'The y coordinate to draw the Model at.'
  14. },
  15. z = {
  16. type = 'number',
  17. default = '0',
  18. description = 'The z coordinate to draw the Model at.'
  19. },
  20. scale = {
  21. type = 'number',
  22. default = '1',
  23. description = 'The scale to draw the Model at.'
  24. },
  25. angle = {
  26. type = 'number',
  27. default = '0',
  28. description = 'The angle to rotate the Model around the axis of rotation, in radians.'
  29. },
  30. ax = {
  31. type = 'number',
  32. default = '0',
  33. description = 'The x component of the axis of rotation.'
  34. },
  35. ay = {
  36. type = 'number',
  37. default = '1',
  38. description = 'The y component of the axis of rotation.'
  39. },
  40. az = {
  41. type = 'number',
  42. default = '0',
  43. description = 'The z component of the axis of rotation.'
  44. },
  45. transform = {
  46. type = 'mat4',
  47. description = 'The transform to apply before drawing.'
  48. },
  49. instances = {
  50. type = 'number',
  51. default = '1',
  52. description = 'The number of copies of the Model to draw.'
  53. }
  54. },
  55. returns = {},
  56. variants = {
  57. {
  58. arguments = { 'x', 'y', 'z', 'scale', 'angle', 'ax', 'ay', 'az', 'instances' },
  59. returns = {}
  60. },
  61. {
  62. arguments = { 'transform', 'instances' },
  63. returns = {}
  64. }
  65. }
  66. }