0.2.0-dev Download ZIP
55 lines ·2.3 KB Raw
| 1 | <?xml version="1.0" encoding="UTF-8" ?> |
| 2 | <class name="RenderSceneData" inherits="Object" api_type="core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd"> |
| 3 | <brief_description> |
| 4 | Abstract render data object, holds scene data related to rendering a single frame of a viewport. |
| 5 | </brief_description> |
| 6 | <description> |
| 7 | Abstract scene data object, exists for the duration of rendering a single viewport. See also [RenderSceneDataRD], [RenderData], and [RenderDataRD]. |
| 8 | [b]Note:[/b] This is an internal rendering server object. Do not instantiate this class from a script. |
| 9 | </description> |
| 10 | <tutorials> |
| 11 | </tutorials> |
| 12 | <methods> |
| 13 | <method name="get_cam_projection" qualifiers="const"> |
| 14 | <return type="Projection" /> |
| 15 | <description> |
| 16 | Returns the camera projection used to render this frame. |
| 17 | [b]Note:[/b] If more than one view is rendered, this will return a combined projection. |
| 18 | </description> |
| 19 | </method> |
| 20 | <method name="get_cam_transform" qualifiers="const"> |
| 21 | <return type="Transform3D" /> |
| 22 | <description> |
| 23 | Returns the camera transform used to render this frame. |
| 24 | [b]Note:[/b] If more than one view is rendered, this will return a centered transform. |
| 25 | </description> |
| 26 | </method> |
| 27 | <method name="get_uniform_buffer" qualifiers="const"> |
| 28 | <return type="RID" /> |
| 29 | <description> |
| 30 | Return the [RID] of the uniform buffer containing the scene data as a UBO. |
| 31 | </description> |
| 32 | </method> |
| 33 | <method name="get_view_count" qualifiers="const"> |
| 34 | <return type="int" /> |
| 35 | <description> |
| 36 | Returns the number of views being rendered. |
| 37 | </description> |
| 38 | </method> |
| 39 | <method name="get_view_eye_offset" qualifiers="const"> |
| 40 | <return type="Vector3" /> |
| 41 | <param index="0" name="view" type="int" /> |
| 42 | <description> |
| 43 | Returns the eye offset per view used to render this frame. This is the offset between our camera transform and the eye transform. |
| 44 | </description> |
| 45 | </method> |
| 46 | <method name="get_view_projection" qualifiers="const"> |
| 47 | <return type="Projection" /> |
| 48 | <param index="0" name="view" type="int" /> |
| 49 | <description> |
| 50 | Returns the view projection per view used to render this frame. |
| 51 | [b]Note:[/b] 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. |
| 52 | </description> |
| 53 | </method> |
| 54 | </methods> |
| 55 | </class> |