DefaultShader.lua 994 B

1234567891011121314151617181920212223242526272829303132333435
  1. return {
  2. summary = 'Built-in shaders.',
  3. description = [[
  4. The set of shaders built in to LÖVR. These can be passed to `Pass:setShader` or
  5. `lovr.graphics.newShader` instead of writing GLSL code. The shaders can be further customized
  6. by using the `flags` option to change their behavior. If the active shader is set to `nil`,
  7. LÖVR picks one of these shaders to use.
  8. ]],
  9. values = {
  10. {
  11. name = 'unlit',
  12. description = 'Basic shader without lighting that uses colors and a texture.'
  13. },
  14. {
  15. name = 'normal',
  16. description = 'Shades triangles based on their normal, resulting in a cool rainbow effect.'
  17. },
  18. {
  19. name = 'font',
  20. description = 'Renders font glyphs.'
  21. },
  22. {
  23. name = 'cubemap',
  24. description = 'Renders cubemaps.'
  25. },
  26. {
  27. name = 'equirect',
  28. description = 'Renders spherical textures.'
  29. },
  30. {
  31. name = 'fill',
  32. description = 'Renders a fullscreen triangle.'
  33. }
  34. }
  35. }