diff options
Diffstat (limited to 'gfx/gl/camera.h')
-rw-r--r-- | gfx/gl/camera.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gfx/gl/camera.h b/gfx/gl/camera.h index 5c37744..d4fe6de 100644 --- a/gfx/gl/camera.h +++ b/gfx/gl/camera.h @@ -70,6 +70,12 @@ public: return position; } + [[nodiscard]] auto & + getFrustumPlanes() const + { + return frustumPlanes; + } + [[nodiscard]] std::array<GlobalPosition4D, 4> extentsAtDist(GlobalDistance) const; [[nodiscard]] static Direction3D upFromForward(const Direction3D & forward); @@ -84,4 +90,5 @@ private: GlobalDistance near, far; glm::mat4 view, projection; glm::mat4 viewProjection, inverseViewProjection; + std::array<glm::vec4, 6> frustumPlanes; }; |