getTexture.lua 622 B

12345678910111213141516171819202122232425
  1. return {
  2. summary = 'Get a texture for the Material.',
  3. description = [[
  4. Returns a texture for a Material. Several predefined `MaterialTexture`s are supported. Any
  5. texture that is `nil` will use a single white pixel as a fallback.
  6. ]],
  7. arguments = {
  8. {
  9. name = 'textureType',
  10. type = 'MaterialTexture',
  11. default = [['diffuse']],
  12. description = 'The type of texture to get.'
  13. }
  14. },
  15. returns = {
  16. {
  17. name = 'texture',
  18. type = 'Texture',
  19. description = 'The texture that is set, or `nil` if no texture is set.'
  20. }
  21. },
  22. related = {
  23. 'MaterialTexture'
  24. }
  25. }