mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-01-18 22:41:46 +00:00
fixed fov in 3D mode
This commit is contained in:
parent
90c7beb17d
commit
51679564a9
1 changed files with 3 additions and 3 deletions
|
@ -106,8 +106,8 @@ namespace CodeImp.DoomBuilder.Rendering
|
||||||
// This creates the projection
|
// This creates the projection
|
||||||
internal void CreateProjection()
|
internal void CreateProjection()
|
||||||
{
|
{
|
||||||
// Read the FOV from configuration
|
// Calculate FOV
|
||||||
float fov = General.Settings.VisualFOV;
|
float fov = Angle2D.DegToRad((float)General.Settings.VisualFOV);
|
||||||
|
|
||||||
// Calculate aspect
|
// Calculate aspect
|
||||||
float aspect = (float)General.Map.Graphics.RenderTarget.ClientSize.Width /
|
float aspect = (float)General.Map.Graphics.RenderTarget.ClientSize.Width /
|
||||||
|
@ -132,7 +132,7 @@ namespace CodeImp.DoomBuilder.Rendering
|
||||||
anglez = delta.GetAngleZ();
|
anglez = delta.GetAngleZ();
|
||||||
|
|
||||||
// Make the view matrix
|
// Make the view matrix
|
||||||
view = Matrix.LookAtRH(D3DDevice.V3(pos), D3DDevice.V3(lookat), new Vector3(0f, 0f, -1f));
|
view = Matrix.LookAtRH(D3DDevice.V3(pos), D3DDevice.V3(lookat), new Vector3(0f, 0f, 1f));
|
||||||
|
|
||||||
// Make the billboard matrix
|
// Make the billboard matrix
|
||||||
billboard = Matrix.RotationYawPitchRoll(0f, anglexy, anglez - Angle2D.PIHALF);
|
billboard = Matrix.RotationYawPitchRoll(0f, anglexy, anglez - Angle2D.PIHALF);
|
||||||
|
|
Loading…
Reference in a new issue