mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-23 04:12:12 +00:00
- fix field of view
This commit is contained in:
parent
9d02676f8f
commit
c2157ee24e
1 changed files with 1 additions and 1 deletions
|
@ -239,7 +239,7 @@ namespace CodeImp.DoomBuilder.Rendering
|
|||
float fov = Angle2D.DegToRad(General.Settings.VisualFOV);
|
||||
float reversefov = 1.0f / (float)Math.Tan(fov / 2.0f);
|
||||
float reversefovy = reversefov * aspect;
|
||||
float fovy = (float)Math.Atan(1.0f / reversefovy) * 2.0f;
|
||||
float fovy = (float)Math.Atan(1.0f / reversefovy);
|
||||
|
||||
// Make the projection matrix
|
||||
projection = Matrix.PerspectiveFov(fovy, aspect, PROJ_NEAR_PLANE, General.Settings.ViewDistance);
|
||||
|
|
Loading…
Reference in a new issue