Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
RenderSceneDataExtension
继承: RenderSceneData < Object
该类允许在 GDExtension 中实现 RenderSceneData。
描述
该类允许在 GDExtension 中实现 RenderSceneData。
方法
_get_cam_projection() virtual const |
|
_get_cam_transform() virtual const |
|
_get_uniform_buffer() virtual const |
|
_get_view_count() virtual const |
|
_get_view_eye_offset(view: int) virtual const |
|
_get_view_projection(view: int) virtual const |
方法说明
Projection _get_cam_projection() virtual const 🔗
在 GDExtension 中实现时请返回相机的 Projection。
Transform3D _get_cam_transform() virtual const 🔗
在 GDExtension 中实现时请返回相机的 Transform3D。
RID _get_uniform_buffer() virtual const 🔗
在 GDExtension 中实现时请返回 Uniform 缓冲的 RID,这个缓冲中包含了 UBO 形式的场景数据。
int _get_view_count() virtual const 🔗
在 GDExtension 中实现时请返回视图数量。
Vector3 _get_view_eye_offset(view: int) virtual const 🔗
在 GDExtension 中实现时请返回 view
视图的眼部偏移量。
Projection _get_view_projection(view: int) virtual const 🔗
在 GDExtension 中实现时请返回 view
视图的视图 Projection。