newShader.lua 647 B

123456789101112131415161718192021222324252627282930
  1. return {
  2. tag = 'graphicsObjects',
  3. summary = 'Create a new Shader.',
  4. description = 'Creates a new Shader.',
  5. arguments = {
  6. {
  7. name = 'vertex',
  8. type = 'string',
  9. description = [[
  10. The code or filename of the vertex shader. If `nil`, the default vertex shader
  11. is used.
  12. ]]
  13. },
  14. {
  15. name = 'fragment',
  16. type = 'string',
  17. description = [[
  18. The code or filename of the fragment shader. If `nil`, the default fragment shader
  19. is used.
  20. ]]
  21. }
  22. },
  23. returns = {
  24. {
  25. name = 'shader',
  26. type = 'Shader',
  27. description = 'The new Shader.'
  28. }
  29. }
  30. }