setMaterial.lua 717 B

12345678910111213141516171819202122232425262728293031323334
  1. return {
  2. tag = 'pipeline',
  3. summary = 'Set the material.',
  4. description = [[
  5. Sets the material. This will apply to most drawing, except for text, skyboxes, and models,
  6. which use their own materials.
  7. ]],
  8. arguments = {
  9. material = {
  10. type = 'Material',
  11. description = 'The material to use for drawing.'
  12. },
  13. texture = {
  14. type = 'Texture',
  15. description = 'The texture to use as the material.'
  16. }
  17. },
  18. returns = {},
  19. variants = {
  20. {
  21. arguments = { 'material' },
  22. returns = {}
  23. },
  24. {
  25. arguments = { 'texture' },
  26. returns = {}
  27. },
  28. {
  29. description = 'Use the default material.',
  30. arguments = {},
  31. returns = {}
  32. }
  33. }
  34. }