123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141 |
- :github_url: hide
- .. DO NOT EDIT THIS FILE!!!
- .. Generated automatically from Godot engine sources.
- .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
- .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/RenderSceneData.xml.
- .. _class_RenderSceneData:
- RenderSceneData
- ===============
- **Inherits:** :ref:`Object<class_Object>`
- **Inherited By:** :ref:`RenderSceneDataExtension<class_RenderSceneDataExtension>`, :ref:`RenderSceneDataRD<class_RenderSceneDataRD>`
- Abstract render data object, holds scene data related to rendering a single frame of a viewport.
- .. rst-class:: classref-introduction-group
- Description
- -----------
- Abstract scene data object, exists for the duration of rendering a single viewport.
- \ **Note:** This is an internal rendering server object, do not instantiate this from script.
- .. rst-class:: classref-reftable-group
- Methods
- -------
- .. table::
- :widths: auto
- +---------------------------------------+--------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Projection<class_Projection>` | :ref:`get_cam_projection<class_RenderSceneData_method_get_cam_projection>`\ (\ ) |const| |
- +---------------------------------------+--------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Transform3D<class_Transform3D>` | :ref:`get_cam_transform<class_RenderSceneData_method_get_cam_transform>`\ (\ ) |const| |
- +---------------------------------------+--------------------------------------------------------------------------------------------------------------------------+
- | :ref:`RID<class_RID>` | :ref:`get_uniform_buffer<class_RenderSceneData_method_get_uniform_buffer>`\ (\ ) |const| |
- +---------------------------------------+--------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`get_view_count<class_RenderSceneData_method_get_view_count>`\ (\ ) |const| |
- +---------------------------------------+--------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Vector3<class_Vector3>` | :ref:`get_view_eye_offset<class_RenderSceneData_method_get_view_eye_offset>`\ (\ view\: :ref:`int<class_int>`\ ) |const| |
- +---------------------------------------+--------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Projection<class_Projection>` | :ref:`get_view_projection<class_RenderSceneData_method_get_view_projection>`\ (\ view\: :ref:`int<class_int>`\ ) |const| |
- +---------------------------------------+--------------------------------------------------------------------------------------------------------------------------+
- .. rst-class:: classref-section-separator
- ----
- .. rst-class:: classref-descriptions-group
- Method Descriptions
- -------------------
- .. _class_RenderSceneData_method_get_cam_projection:
- .. rst-class:: classref-method
- :ref:`Projection<class_Projection>` **get_cam_projection**\ (\ ) |const| :ref:`🔗<class_RenderSceneData_method_get_cam_projection>`
- Returns the camera projection used to render this frame.
- \ **Note:** If more than one view is rendered, this will return a combined projection.
- .. rst-class:: classref-item-separator
- ----
- .. _class_RenderSceneData_method_get_cam_transform:
- .. rst-class:: classref-method
- :ref:`Transform3D<class_Transform3D>` **get_cam_transform**\ (\ ) |const| :ref:`🔗<class_RenderSceneData_method_get_cam_transform>`
- Returns the camera transform used to render this frame.
- \ **Note:** If more than one view is rendered, this will return a centered transform.
- .. rst-class:: classref-item-separator
- ----
- .. _class_RenderSceneData_method_get_uniform_buffer:
- .. rst-class:: classref-method
- :ref:`RID<class_RID>` **get_uniform_buffer**\ (\ ) |const| :ref:`🔗<class_RenderSceneData_method_get_uniform_buffer>`
- Return the :ref:`RID<class_RID>` of the uniform buffer containing the scene data as a UBO.
- .. rst-class:: classref-item-separator
- ----
- .. _class_RenderSceneData_method_get_view_count:
- .. rst-class:: classref-method
- :ref:`int<class_int>` **get_view_count**\ (\ ) |const| :ref:`🔗<class_RenderSceneData_method_get_view_count>`
- Returns the number of views being rendered.
- .. rst-class:: classref-item-separator
- ----
- .. _class_RenderSceneData_method_get_view_eye_offset:
- .. rst-class:: classref-method
- :ref:`Vector3<class_Vector3>` **get_view_eye_offset**\ (\ view\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_RenderSceneData_method_get_view_eye_offset>`
- Returns the eye offset per view used to render this frame. This is the offset between our camera transform and the eye transform.
- .. rst-class:: classref-item-separator
- ----
- .. _class_RenderSceneData_method_get_view_projection:
- .. rst-class:: classref-method
- :ref:`Projection<class_Projection>` **get_view_projection**\ (\ view\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_RenderSceneData_method_get_view_projection>`
- Returns the view projection per view used to render this frame.
- \ **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.
- .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
- .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
- .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
- .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
- .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
- .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
- .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
- .. |void| replace:: :abbr:`void (No return value.)`
|