summaryrefslogtreecommitdiff
path: root/gfx/frustum.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2025-03-07 00:11:07 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2025-03-11 01:13:59 +0000
commitc310240881e9d1b474db6ef8f8f2891ce1646795 (patch)
tree4529b28457ef805015242f4579299cc39240ddde /gfx/frustum.cpp
parentCreate AxisAlignedBoundingBox (diff)
downloadilt-c310240881e9d1b474db6ef8f8f2891ce1646795.tar.bz2
ilt-c310240881e9d1b474db6ef8f8f2891ce1646795.tar.xz
ilt-c310240881e9d1b474db6ef8f8f2891ce1646795.zip
Position is moved to Frustum
Diffstat (limited to 'gfx/frustum.cpp')
-rw-r--r--gfx/frustum.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gfx/frustum.cpp b/gfx/frustum.cpp
index 9e046f6..a9dbdf0 100644
--- a/gfx/frustum.cpp
+++ b/gfx/frustum.cpp
@@ -5,8 +5,8 @@
static constexpr auto PLANES = std::array {0, 1, 2} * std::array {1.F, -1.F};
-Frustum::Frustum(const glm::mat4 & view, const glm::mat4 & projection) :
- view {view}, projection {projection}, viewProjection {}, inverseViewProjection {}, planes {}
+Frustum::Frustum(const GlobalPosition3D & pos, const glm::mat4 & view, const glm::mat4 & projection) :
+ position {pos}, view {view}, projection {projection}, viewProjection {}, inverseViewProjection {}, planes {}
{
updateCache();
}