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。