Merge pull request #49219 from aaronfranke/3.x-doc-fov

[3.x] Fix Camera FOV documentation
This commit is contained in:
Rémi Verschelde 2021-05-31 12:39:46 +02:00 committed by GitHub
commit d9cfe532b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -191,11 +191,11 @@
</member>
<member name="fov" type="float" setter="set_fov" getter="get_fov" default="70.0">
The camera's field of view angle (in degrees). Only applicable in perspective mode. Since [member keep_aspect] locks one axis, [code]fov[/code] sets the other axis' field of view angle.
For reference, the default vertical field of view value ([code]75.0[/code]) is equivalent to a horizontal FOV of:
- ~91.31 degrees in a 4:3 viewport
- ~101.67 degrees in a 16:10 viewport
- ~107.51 degrees in a 16:9 viewport
- ~121.63 degrees in a 21:9 viewport
For reference, the default vertical field of view value ([code]70.0[/code]) is equivalent to a horizontal FOV of:
- ~86.07 degrees in a 4:3 viewport
- ~96.50 degrees in a 16:10 viewport
- ~102.45 degrees in a 16:9 viewport
- ~117.06 degrees in a 21:9 viewport
</member>
<member name="frustum_offset" type="Vector2" setter="set_frustum_offset" getter="get_frustum_offset" default="Vector2( 0, 0 )">
The camera's frustum offset. This can be changed from the default to create "tilted frustum" effects such as [url=https://zdoom.org/wiki/Y-shearing]Y-shearing[/url].