diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-03-11 00:40:35 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-03-11 01:13:59 +0000 |
commit | fc74736b9eaa1f3e033ded9103b69d2a39a3e263 (patch) | |
tree | c3f725a614b5aab57dd8476de7e2410d579f3094 /gfx/frustum.h | |
parent | Pass a Frustum to shadow renderers (diff) | |
download | ilt-fc74736b9eaa1f3e033ded9103b69d2a39a3e263.tar.bz2 ilt-fc74736b9eaa1f3e033ded9103b69d2a39a3e263.tar.xz ilt-fc74736b9eaa1f3e033ded9103b69d2a39a3e263.zip |
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.
Diffstat (limited to 'gfx/frustum.h')
-rw-r--r-- | gfx/frustum.h | 1 |
1 files changed, 1 insertions, 0 deletions
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<GlobalDistance>; [[nodiscard]] bool contains(const BoundingBox &) const; + [[nodiscard]] bool shadedBy(const BoundingBox &) const; protected: static constexpr size_t FACES = 6; |