diff options
| author | 3gg <3gg@shellblade.net> | 2026-02-13 09:41:19 -0800 |
|---|---|---|
| committer | 3gg <3gg@shellblade.net> | 2026-02-13 09:41:19 -0800 |
| commit | abacb43bd5914ec3b98ee48b46216c5329203693 (patch) | |
| tree | 9587de8239067754718335de72e69e41b6b3fadf | |
| parent | 4b70b9bce466bc68ea083ae468106b44c8a93fae (diff) | |
Use more appropriate fovy
| -rw-r--r-- | src/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
| @@ -27,7 +27,8 @@ static constexpr int WindowWidth = 640; | |||
| 27 | static constexpr int WindowHeight = 480; | 27 | static constexpr int WindowHeight = 480; |
| 28 | static constexpr sgVec2i WindowDims = (sgVec2i){.x = WindowWidth, .y = WindowHeight}; | 28 | static constexpr sgVec2i WindowDims = (sgVec2i){.x = WindowWidth, .y = WindowHeight}; |
| 29 | 29 | ||
| 30 | static constexpr R Fovy = (R)(90 * TO_RAD); | 30 | // 90 fovx at 4:3 -> 73.73 fovy. |
| 31 | static constexpr R Fovy = (R)(73.73 * TO_RAD); | ||
| 31 | static constexpr R Near = 0.01f; | 32 | static constexpr R Near = 0.01f; |
| 32 | static constexpr R Far = 100.0f; | 33 | static constexpr R Far = 100.0f; |
| 33 | 34 | ||
