PassthroughMode.lua 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. return {
  2. summary = 'Passthrough modes.',
  3. description = [[
  4. Different passthrough modes, set using `lovr.headset.setPassthrough`.
  5. For best results, the `blend` and `add` modes should use a transparent background color, which
  6. can be changed with `lovr.graphics.setBackgroundColor`.
  7. ]],
  8. values = {
  9. {
  10. name = 'opaque',
  11. description = [[
  12. The headset display will not blend with anything behind it. Most VR headsets use this mode.
  13. ]]
  14. },
  15. {
  16. name = 'blend',
  17. description = [[
  18. The real world will blend with the headset display using the alpha channel. This is
  19. supported on VR headsets with camera passthrough, as well as some AR displays.
  20. ]]
  21. },
  22. {
  23. name = 'add',
  24. description = [[
  25. Color values from virtual content will be added to the real world. This is the most common
  26. mode used for AR. Notably, black pixels will not show up at all.
  27. ]]
  28. }
  29. },
  30. related = {
  31. 'lovr.headset.getPassthrough',
  32. 'lovr.headset.setPassthrough',
  33. 'lovr.headset.getPassthroughModes'
  34. }
  35. }