From fc74736b9eaa1f3e033ded9103b69d2a39a3e263 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Tue, 11 Mar 2025 00:40:35 +0000 Subject: Extend Frustum for testing for shaded by Like contains, but doesn't test the back plane as shadow caster can be anywhere behind the view point and still cast into it. --- gfx/frustum.h | 1 + 1 file changed, 1 insertion(+) (limited to 'gfx/frustum.h') diff --git a/gfx/frustum.h b/gfx/frustum.h index 2624ba1..a2d90e9 100644 --- a/gfx/frustum.h +++ b/gfx/frustum.h @@ -31,6 +31,7 @@ public: using BoundingBox = AxisAlignedBoundingBox; [[nodiscard]] bool contains(const BoundingBox &) const; + [[nodiscard]] bool shadedBy(const BoundingBox &) const; protected: static constexpr size_t FACES = 6; -- cgit v1.2.3