TextureProjection.lua 580 B

123456789101112131415161718
  1. return {
  2. summary = 'Different projection types for renderable textures.',
  3. description = [[
  4. When creating Textures to be used as render targets, they can be created in either "2d" or "3d"
  5. mode. 2D mode is good for 2D user interfaces or postprocessing, whereas 3d is useful for
  6. portals, weapon scopes, mirrors, and other situations where 3D content needs to be rendered.
  7. ]],
  8. values = {
  9. {
  10. name = '2d',
  11. description = 'Use an orthographic projection.'
  12. },
  13. {
  14. name = '3d',
  15. description = 'Use a perspective projection.'
  16. }
  17. }
  18. }