mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
Implement offset_rect property to MobileVRInterface to allow changing screen area.
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user