Skip to content

Commit

Permalink
Fixed orthographic camera
Browse files Browse the repository at this point in the history
  • Loading branch information
Phyyl committed Sep 24, 2022
1 parent 4b9c0ca commit f441296
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Vildmark/VildmarkGame.Camera.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ protected static OrthographicOffCenterCamera CreateAutoOrthographicOffCenterCame

protected static OrthographicCamera CreateAutoOrthographicCamera(float fovY = 1, float zNear = 0.01f, float zFar = 1000)
{
OrthographicCamera camera = new(Width, Height, zNear, zFar);
OrthographicCamera camera = new(fovY * AspectRatio, fovY, zNear, zFar);

Window.Resize += e =>
{
Expand Down

0 comments on commit f441296

Please sign in to comment.