setLayers.lua 968 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. return {
  2. tag = 'layers',
  3. summary = 'Set the list of active layers.',
  4. description = [[
  5. Sets the list of active `Layer` objects. These are the layers that will be rendered in the
  6. headset's display. They are rendered in order.
  7. ]],
  8. arguments = {
  9. ['...layers'] = {
  10. type = 'Layer',
  11. description = 'Zero or more layers to render in the headset.'
  12. },
  13. t = {
  14. type = 'table',
  15. description = 'A table with zero or more layers starting at index 1.'
  16. }
  17. },
  18. returns = {},
  19. variants = {
  20. {
  21. arguments = { '...layers' },
  22. returns = {}
  23. },
  24. {
  25. arguments = { 't' },
  26. returns = {}
  27. }
  28. },
  29. notes = [[
  30. Currently some VR systems are able to sort the layers by their Z depth, but on others layers
  31. later in the list will render on top of previous layers, regardless of depth.
  32. There is currently a maximum of 10 layers.
  33. ]],
  34. related = {
  35. 'lovr.headset.newLayer',
  36. 'Layer'
  37. }
  38. }