From af6b27fa0a3b16d7d0fe7f7be33109af1dcf5f88 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Fri, 7 Mar 2025 20:35:42 +0000 Subject: 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. --- game/terrain.h | 1 + 1 file changed, 1 insertion(+) (limited to 'game/terrain.h') 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; }; -- cgit v1.2.3