diff options
| author | MegaMech <MegaMech@users.noreply.github.com> | 2025-12-13 17:28:44 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-13 17:28:44 -0700 |
| commit | 7bc8d6f4be2bc22f7f4815d3c5eac691c4b92c0f (patch) | |
| tree | ea7bed88faf5f3bb0788c698fd0252d3f624548a /src/engine/editor/EditorMath.cpp | |
| parent | 4e51b7d5b6a9b89deb5ef135deec0ee5f0087e7c (diff) | |
Refactor Field-of-view into the Camera Struct (#590)
* Fix finishline for toads turnpike in extra
* Fixed trash bin in extra
* Refactor fov
* Update scene.json
* Allow setting fog
* impl fog save & load
Diffstat (limited to 'src/engine/editor/EditorMath.cpp')
| -rw-r--r-- | src/engine/editor/EditorMath.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/engine/editor/EditorMath.cpp b/src/engine/editor/EditorMath.cpp index 620aa2b48..02932a5a7 100644 --- a/src/engine/editor/EditorMath.cpp +++ b/src/engine/editor/EditorMath.cpp @@ -62,7 +62,7 @@ FVector ScreenRayTrace() { Mat4 perspMtx; u16 perspNorm; - guPerspectiveF(perspMtx, &perspNorm, 40, OTRGetAspectRatio(), CM_GetProps()->NearPersp, CM_GetProps()->FarPersp, 1.0f); + guPerspectiveF(perspMtx, &perspNorm, camera->fieldOfView, OTRGetAspectRatio(), CM_GetProps()->NearPersp, CM_GetProps()->FarPersp, 1.0f); Mat4 inversePerspMtx; if (InverseMatrix((float*)&perspMtx, (float*)&inversePerspMtx) != 2) { |
