getClipDistance.lua 776 B

1234567891011121314151617181920212223242526
  1. return {
  2. tag = 'headset',
  3. summary = 'Get the near and far clipping planes of the headset.',
  4. description = [[
  5. Returns the near and far clipping planes used to render to the headset. Objects closer than the
  6. near clipping plane or further than the far clipping plane will be clipped out of view.
  7. ]],
  8. arguments = {},
  9. returns = {
  10. {
  11. name = 'near',
  12. type = 'number',
  13. description = 'The distance to the near clipping plane, in meters.'
  14. },
  15. {
  16. name = 'far',
  17. type = 'number',
  18. description = 'The distance to the far clipping plane, in meters.'
  19. }
  20. },
  21. notes = [[
  22. The default near and far clipping planes are 0.1 meters and 100.0 meters.
  23. This is not currently supported by the `vrapi` headset driver.
  24. ]]
  25. }