class_renderscenedata.rst 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/RenderSceneData.xml.
  6. .. _class_RenderSceneData:
  7. RenderSceneData
  8. ===============
  9. **Inherits:** :ref:`Object<class_Object>`
  10. **Inherited By:** :ref:`RenderSceneDataExtension<class_RenderSceneDataExtension>`, :ref:`RenderSceneDataRD<class_RenderSceneDataRD>`
  11. Abstract render data object, holds scene data related to rendering a single frame of a viewport.
  12. .. rst-class:: classref-introduction-group
  13. Description
  14. -----------
  15. Abstract scene data object, exists for the duration of rendering a single viewport.
  16. \ **Note:** This is an internal rendering server object, do not instantiate this from script.
  17. .. rst-class:: classref-reftable-group
  18. Methods
  19. -------
  20. .. table::
  21. :widths: auto
  22. +---------------------------------------+--------------------------------------------------------------------------------------------------------------------------+
  23. | :ref:`Projection<class_Projection>` | :ref:`get_cam_projection<class_RenderSceneData_method_get_cam_projection>`\ (\ ) |const| |
  24. +---------------------------------------+--------------------------------------------------------------------------------------------------------------------------+
  25. | :ref:`Transform3D<class_Transform3D>` | :ref:`get_cam_transform<class_RenderSceneData_method_get_cam_transform>`\ (\ ) |const| |
  26. +---------------------------------------+--------------------------------------------------------------------------------------------------------------------------+
  27. | :ref:`RID<class_RID>` | :ref:`get_uniform_buffer<class_RenderSceneData_method_get_uniform_buffer>`\ (\ ) |const| |
  28. +---------------------------------------+--------------------------------------------------------------------------------------------------------------------------+
  29. | :ref:`int<class_int>` | :ref:`get_view_count<class_RenderSceneData_method_get_view_count>`\ (\ ) |const| |
  30. +---------------------------------------+--------------------------------------------------------------------------------------------------------------------------+
  31. | :ref:`Vector3<class_Vector3>` | :ref:`get_view_eye_offset<class_RenderSceneData_method_get_view_eye_offset>`\ (\ view\: :ref:`int<class_int>`\ ) |const| |
  32. +---------------------------------------+--------------------------------------------------------------------------------------------------------------------------+
  33. | :ref:`Projection<class_Projection>` | :ref:`get_view_projection<class_RenderSceneData_method_get_view_projection>`\ (\ view\: :ref:`int<class_int>`\ ) |const| |
  34. +---------------------------------------+--------------------------------------------------------------------------------------------------------------------------+
  35. .. rst-class:: classref-section-separator
  36. ----
  37. .. rst-class:: classref-descriptions-group
  38. Method Descriptions
  39. -------------------
  40. .. _class_RenderSceneData_method_get_cam_projection:
  41. .. rst-class:: classref-method
  42. :ref:`Projection<class_Projection>` **get_cam_projection**\ (\ ) |const| :ref:`🔗<class_RenderSceneData_method_get_cam_projection>`
  43. Returns the camera projection used to render this frame.
  44. \ **Note:** If more than one view is rendered, this will return a combined projection.
  45. .. rst-class:: classref-item-separator
  46. ----
  47. .. _class_RenderSceneData_method_get_cam_transform:
  48. .. rst-class:: classref-method
  49. :ref:`Transform3D<class_Transform3D>` **get_cam_transform**\ (\ ) |const| :ref:`🔗<class_RenderSceneData_method_get_cam_transform>`
  50. Returns the camera transform used to render this frame.
  51. \ **Note:** If more than one view is rendered, this will return a centered transform.
  52. .. rst-class:: classref-item-separator
  53. ----
  54. .. _class_RenderSceneData_method_get_uniform_buffer:
  55. .. rst-class:: classref-method
  56. :ref:`RID<class_RID>` **get_uniform_buffer**\ (\ ) |const| :ref:`🔗<class_RenderSceneData_method_get_uniform_buffer>`
  57. Return the :ref:`RID<class_RID>` of the uniform buffer containing the scene data as a UBO.
  58. .. rst-class:: classref-item-separator
  59. ----
  60. .. _class_RenderSceneData_method_get_view_count:
  61. .. rst-class:: classref-method
  62. :ref:`int<class_int>` **get_view_count**\ (\ ) |const| :ref:`🔗<class_RenderSceneData_method_get_view_count>`
  63. Returns the number of views being rendered.
  64. .. rst-class:: classref-item-separator
  65. ----
  66. .. _class_RenderSceneData_method_get_view_eye_offset:
  67. .. rst-class:: classref-method
  68. :ref:`Vector3<class_Vector3>` **get_view_eye_offset**\ (\ view\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_RenderSceneData_method_get_view_eye_offset>`
  69. Returns the eye offset per view used to render this frame. This is the offset between our camera transform and the eye transform.
  70. .. rst-class:: classref-item-separator
  71. ----
  72. .. _class_RenderSceneData_method_get_view_projection:
  73. .. rst-class:: classref-method
  74. :ref:`Projection<class_Projection>` **get_view_projection**\ (\ view\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_RenderSceneData_method_get_view_projection>`
  75. Returns the view projection per view used to render this frame.
  76. \ **Note:** If a single view is rendered, this returns the camera projection. If more than one view is rendered, this will return a projection for the given view including the eye offset.
  77. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  78. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  79. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  80. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  81. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  82. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  83. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  84. .. |void| replace:: :abbr:`void (No return value.)`