Table of Contents

Class RenderSceneData

Abstract render data object, holds scene data related to rendering a single frame of a viewport.

Inheritance
RenderSceneData
Derived

Remarks

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.

Methods

get_cam_projection

Qualifiers: const

Returns the camera projection used to render this frame.

Note: If more than one view is rendered, this will return a combined projection.

Projection get_cam_projection

get_cam_transform

Qualifiers: const

Returns the camera transform used to render this frame.

Note: If more than one view is rendered, this will return a centered transform.

Transform3D get_cam_transform

get_uniform_buffer

Qualifiers: const

Return the RID of the uniform buffer containing the scene data as a UBO.

RID get_uniform_buffer

get_view_count

Qualifiers: const

Returns the number of views being rendered.

int get_view_count

get_view_eye_offset(int)

Qualifiers: const

Returns the eye offset per view used to render this frame. This is the offset between our camera transform and the eye transform.

Vector3 get_view_eye_offset(int view)

Parameters

view int

get_view_projection(int)

Qualifiers: const

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.

Projection get_view_projection(int view)

Parameters

view int