diff options
Diffstat (limited to 'src/client/meshgen/collector.h')
-rw-r--r-- | src/client/meshgen/collector.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/client/meshgen/collector.h b/src/client/meshgen/collector.h index e4189088e..c390c53e7 100644 --- a/src/client/meshgen/collector.h +++ b/src/client/meshgen/collector.h @@ -37,6 +37,12 @@ struct PreMeshBuffer struct MeshCollector { std::array<std::vector<PreMeshBuffer>, MAX_TILE_LAYERS> prebuffers; + // bounding sphere radius and center + f32 m_bounding_radius_sq = 0.0f; + v3f m_center_pos; + + // center_pos: pos to use for bounding-sphere, in BS-space + MeshCollector(const v3f center_pos) : m_center_pos(center_pos) {} // clang-format off void append(const TileSpec &material, |