Implement offset_rect property to MobileVRInterface to allow changing screen area.

This commit is contained in:
Radiant
2024-05-02 16:25:48 +03:00
parent a4fbe4c01f
commit 9be2f7090a
3 changed files with 25 additions and 3 deletions

View File

@@ -34,6 +34,9 @@
<member name="k2" type="float" setter="set_k2" getter="get_k2" default="0.215">
The k2 lens factor, see k1.
</member>
<member name="offset_rect" type="Rect2" setter="set_offset_rect" getter="get_offset_rect" default="Rect2(0, 0, 1, 1)">
Set the offset rect relative to the area being rendered. A length of 1 represents the whole rendering area on that axis.
</member>
<member name="oversample" type="float" setter="set_oversample" getter="get_oversample" default="1.5">
The oversample setting. Because of the lens distortion we have to render our buffers at a higher resolution then the screen can natively handle. A value between 1.5 and 2.0 often provides good results but at the cost of performance.
</member>