getMaterial.lua 432 B

12345678910111213141516171819202122
  1. return {
  2. summary = 'Get the Material applied to the Mesh.',
  3. description = 'Returns the `Material` applied to the Mesh.',
  4. arguments = {},
  5. returns = {
  6. material = {
  7. type = 'Material',
  8. description = 'The material.'
  9. }
  10. },
  11. variants = {
  12. {
  13. arguments = {},
  14. returns = { 'material' }
  15. }
  16. },
  17. related = {
  18. 'Pass:setMaterial',
  19. 'Model:getMaterial',
  20. 'lovr.graphics.newMaterial'
  21. }
  22. }