diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-03-07 20:35:42 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-03-11 01:13:59 +0000 |
commit | af6b27fa0a3b16d7d0fe7f7be33109af1dcf5f88 (patch) | |
tree | f5b76d6ce4a08c53415cf1b72708f32c2cf5c506 /game/terrain.h | |
parent | AxisAlignedBoundingBox construct from range instead of span (diff) | |
download | ilt-af6b27fa0a3b16d7d0fe7f7be33109af1dcf5f88.tar.bz2 ilt-af6b27fa0a3b16d7d0fe7f7be33109af1dcf5f88.tar.xz ilt-af6b27fa0a3b16d7d0fe7f7be33109af1dcf5f88.zip |
Construct terrain tile AxisAlignedBoundingBox during mesh generation
No surface is simply the tile bounds, but with a surface, it's
constrained to just the bounds of the surface itself.
Diffstat (limited to 'game/terrain.h')
-rw-r--r-- | game/terrain.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/game/terrain.h b/game/terrain.h index 40a5989..1d00f97 100644 --- a/game/terrain.h +++ b/game/terrain.h @@ -35,6 +35,7 @@ private: glVertexArray vertexArray; glBuffer indicesBuffer; GLsizei count; + AxisAlignedBoundingBox aabb; mutable bool visible; }; |