Skip to content

Commit

Permalink
Merge pull request #49219 from aaronfranke/3.x-doc-fov
Browse files Browse the repository at this point in the history
[3.x] Fix Camera FOV documentation
  • Loading branch information
akien-mga authored May 31, 2021
2 parents fb11927 + 753d0fc commit d9cfe53
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions doc/classes/Camera.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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].
Expand Down

0 comments on commit d9cfe53

Please sign in to comment.