setAttributeEnabled.lua 476 B

12345678910111213141516171819
  1. return {
  2. summary = 'Enable or disable a vertex attribute.',
  3. description = [[
  4. Sets whether a vertex attribute is enabled. Disabled attributes won't be sent to shaders.
  5. ]],
  6. arguments = {
  7. {
  8. name = 'attribute',
  9. type = 'string',
  10. description = 'The name of the attribute.'
  11. },
  12. {
  13. name = 'enabled',
  14. type = 'boolean',
  15. description = 'Whether or not the attribute is enabled when drawing the Mesh.'
  16. }
  17. },
  18. returns = {}
  19. }