| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- return {
- summary = 'Draw the Model.',
- description = 'Draw the Model.',
- arguments = {
- x = {
- type = 'number',
- default = '0',
- description = 'The x coordinate to draw the Model at.'
- },
- y = {
- type = 'number',
- default = '0',
- description = 'The y coordinate to draw the Model at.'
- },
- z = {
- type = 'number',
- default = '0',
- description = 'The z coordinate to draw the Model at.'
- },
- scale = {
- type = 'number',
- default = '1',
- description = 'The scale to draw the Model at.'
- },
- angle = {
- type = 'number',
- default = '0',
- description = 'The angle to rotate the Model around the axis of rotation, in radians.'
- },
- ax = {
- type = 'number',
- default = '0',
- description = 'The x component of the axis of rotation.'
- },
- ay = {
- type = 'number',
- default = '1',
- description = 'The y component of the axis of rotation.'
- },
- az = {
- type = 'number',
- default = '0',
- description = 'The z component of the axis of rotation.'
- },
- transform = {
- type = 'mat4',
- description = 'The transform to apply before drawing.'
- },
- instances = {
- type = 'number',
- default = '1',
- description = 'The number of copies of the Model to draw.'
- }
- },
- returns = {},
- variants = {
- {
- arguments = { 'x', 'y', 'z', 'scale', 'angle', 'ax', 'ay', 'az', 'instances' },
- returns = {}
- },
- {
- arguments = { 'transform', 'instances' },
- returns = {}
- }
- }
- }
|