setMaterial.lua 620 B

123456789101112131415161718192021222324252627282930
  1. return {
  2. summary = 'Set a Material to use when drawing the Mesh.',
  3. description = 'Sets a `Material` to use when drawing the Mesh.',
  4. arguments = {
  5. material = {
  6. type = 'Material',
  7. description = 'The material to use.'
  8. },
  9. texture = {
  10. type = 'Texture',
  11. description = 'The texture to use as the material.'
  12. }
  13. },
  14. returns = {},
  15. variants = {
  16. {
  17. arguments = { 'material' },
  18. returns = {}
  19. },
  20. {
  21. arguments = { 'texture' },
  22. returns = {}
  23. }
  24. },
  25. related = {
  26. 'Pass:setMaterial',
  27. 'Model:getMaterial',
  28. 'lovr.graphics.newMaterial'
  29. }
  30. }