From 5a98845655900a7884bf5a73c5406318f1106d77 Mon Sep 17 00:00:00 2001 From: Bastiaan Olij Date: Thu, 3 Aug 2023 22:10:03 +1000 Subject: Implement hooks into renderer --- doc/classes/RenderSceneData.xml | 55 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 doc/classes/RenderSceneData.xml (limited to 'doc/classes/RenderSceneData.xml') diff --git a/doc/classes/RenderSceneData.xml b/doc/classes/RenderSceneData.xml new file mode 100644 index 0000000000..0ac13ca6d8 --- /dev/null +++ b/doc/classes/RenderSceneData.xml @@ -0,0 +1,55 @@ + + + + Abstract render data object, holds scene data related to rendering a single frame of a viewport. + + + Abstract scene data object, exists for the duration of rendering a single viewport. + [b]Note:[/b] This is an internal rendering server object, do not instantiate this from script. + + + + + + + + Returns the camera projection used to render this frame. + [b]Note:[/b] If more than one view is rendered, this will return a combined projection. + + + + + + Returns the camera transform used to render this frame. + [b]Note:[/b] If more than one view is rendered, this will return a centered transform. + + + + + + Return the [RID] of the uniform buffer containing the scene data as a UBO. + + + + + + Returns the number of views being rendered. + + + + + + + Returns the eye offset per view used to render this frame. This is the offset between our camera transform and the eye transform. + + + + + + + Returns the view projection per view used to render this frame. + [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. + + + + -- cgit v1.2.3