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...
XRVRS
继承: Object
XR 接口用于生成 VRS 图像的辅助类。
描述
各种 XR 接口使用该类来生成可用于加速渲染的 VRS 纹理。
属性
|
||
|
||
|
方法
make_vrs_texture(target_size: Vector2, eye_foci: PackedVector2Array) |
属性说明
如果 VRS 用作屏幕尺寸大小的百分比,则焦点周围可保证完整质量的最小半径。
Rect2i vrs_render_region = Rect2i(0, 0, 0, 0)
🔗
生成时 VRS 纹理缩放至的渲染区域。
计算 VRS 密度图时使用的强度。该值越大,VRS 越明显。
方法说明
RID make_vrs_texture(target_size: Vector2, eye_foci: PackedVector2Array) 🔗
根据由我们的 VRS 图块大小调整的渲染 target_size
生成 VRS 纹理。对于传入 eye_foci
的每个眼睛焦点,都会创建一个层。焦点应位于 NDC 中。
结果将被缓存,请求具有不变参数和设置的 VRS 纹理将返回该缓存的 RID。