XRVRS

继承: Object

Helper class for XR interfaces that generates VRS images.

描述

This class is used by various XR interfaces to generate VRS textures that can be used to speed up rendering.

属性

方法

RIDmake_vrs_texture ( target_size: Vector2, eye_foci: PackedVector2Array )

属性说明

float vrs_min_radius = 20.0

  • void set_vrs_min_radius ( value: float )
  • float get_vrs_min_radius ( )

The minimum radius around the focal point where full quality is guaranteed if VRS is used as a percentage of screen size.


float vrs_strength = 1.0

  • void set_vrs_strength ( value: float )
  • float get_vrs_strength ( )

The strength used to calculate the VRS density map. The greater this value, the more noticeable VRS is.


方法说明

RID make_vrs_texture ( target_size: Vector2, eye_foci: PackedVector2Array )

Generates the VRS texture based on a render target_size adjusted by our VRS tile size. For each eyes focal point passed in eye_foci a layer is created. Focal point should be in NDC.

The result will be cached, requesting a VRS texture with unchanged parameters and settings will return the cached RID.

1

本方法通常需要用户覆盖才能生效。

2

本方法无副作用,不会修改该实例的任何成员变量。

3

本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。

4

本方法用于构造某个类型。

5

调用本方法无需实例,可直接使用类名进行调用。

6

本方法描述的是使用本类型作为左操作数的有效运算符。

7

这个值是由下列位标志构成位掩码的整数。

8

无返回值。