getViewCount.lua 759 B

1234567891011121314151617181920212223242526272829303132
  1. return {
  2. tag = 'camera',
  3. summary = 'Returns the view count of a render pass.',
  4. description = [[
  5. Returns the view count of a render pass. This is the layer count of the textures it is
  6. rendering to.
  7. ]],
  8. arguments = {},
  9. returns = {
  10. views = {
  11. type = 'number',
  12. description = 'The view count.'
  13. }
  14. },
  15. variants = {
  16. {
  17. arguments = {},
  18. returns = { 'views' }
  19. }
  20. },
  21. notes = [[
  22. A render pass has one "camera" for each view. Whenever something is drawn, it is broadcast to
  23. each view (layer) of each texture, using the corresponding camera.
  24. ]],
  25. related = {
  26. 'Pass:getViewPose',
  27. 'Pass:setViewPose',
  28. 'Pass:getProjection',
  29. 'Pass:setProjection',
  30. 'lovr.headset.getViewCount'
  31. }
  32. }