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
1 changed files with 5 additions and 5 deletions

View File

@ -191,11 +191,11 @@
</member> </member>
<member name="fov" type="float" setter="set_fov" getter="get_fov" default="70.0"> <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. 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: For reference, the default vertical field of view value ([code]70.0[/code]) is equivalent to a horizontal FOV of:
- ~91.31 degrees in a 4:3 viewport - ~86.07 degrees in a 4:3 viewport
- ~101.67 degrees in a 16:10 viewport - ~96.50 degrees in a 16:10 viewport
- ~107.51 degrees in a 16:9 viewport - ~102.45 degrees in a 16:9 viewport
- ~121.63 degrees in a 21:9 viewport - ~117.06 degrees in a 21:9 viewport
</member> </member>
<member name="frustum_offset" type="Vector2" setter="set_frustum_offset" getter="get_frustum_offset" default="Vector2( 0, 0 )"> <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]. 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].