diff options
| author | Juan Linietsky | 2014-09-15 20:06:37 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2014-09-15 20:06:37 -0300 |
| commit | 642c63319eb7471c9accc0c50dfffef5d72c0078 (patch) | |
| tree | 6d1a3c4ee4a591d9dc9ec9bdbf4054d66ea61774 /core/math/camera_matrix.h | |
| parent | 8cab401d08f8e25aa9b2dc710204785858ff3dbb (diff) | |
| download | godot-642c63319eb7471c9accc0c50dfffef5d72c0078.tar.gz godot-642c63319eb7471c9accc0c50dfffef5d72c0078.tar.zst godot-642c63319eb7471c9accc0c50dfffef5d72c0078.zip | |
Diffstat (limited to 'core/math/camera_matrix.h')
| -rw-r--r-- | core/math/camera_matrix.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/math/camera_matrix.h b/core/math/camera_matrix.h index 6ffcb0ed0..767236ea0 100644 --- a/core/math/camera_matrix.h +++ b/core/math/camera_matrix.h @@ -60,7 +60,7 @@ struct CameraMatrix { static float get_fovy(float p_fovx,float p_aspect) { - return Math::atan(p_aspect * Math::tan(p_fovx * 0.5))*2.0; + return Math::rad2deg(Math::atan(p_aspect * Math::tan(Math::deg2rad(p_fovx) * 0.5))*2.0); } float get_z_far() const; |
