fix clang warnings

This commit is contained in:
MihailRis 2025-11-24 21:06:38 +03:00
parent 4c2a85acbe
commit 69f995b2a0
2 changed files with 1 additions and 2 deletions

View file

@ -15,7 +15,6 @@ const float DIRECTIONAL_LIGHT_FACTOR = 0.3f;
namespace { namespace {
static constexpr float K_CHUNK_CENTER_BIAS = 0.5f; static constexpr float K_CHUNK_CENTER_BIAS = 0.5f;
static constexpr float K_AO_NORMAL_PUSH = 0.75f; static constexpr float K_AO_NORMAL_PUSH = 0.75f;
static constexpr float K_FACE_OFFSET_EPS = 1e-3f;
static inline void expand_aabb_point(AABB& aabb, bool& init, const glm::vec3& p) { static inline void expand_aabb_point(AABB& aabb, bool& init, const glm::vec3& p) {
if (!init) { aabb.a = aabb.b = p; init = true; } else { aabb.addPoint(p); } if (!init) { aabb.a = aabb.b = p; init = true; } else { aabb.addPoint(p); }

View file

@ -52,5 +52,5 @@ struct ChunkMesh {
std::unique_ptr<Mesh<ChunkVertex>> mesh; std::unique_ptr<Mesh<ChunkVertex>> mesh;
SortingMeshData sortingMeshData; SortingMeshData sortingMeshData;
std::unique_ptr<Mesh<ChunkVertex> > sortedMesh = nullptr; std::unique_ptr<Mesh<ChunkVertex> > sortedMesh = nullptr;
AABB localAabb; // mesh-space (chunk-local) bounds for precise culling AABB localAabb {}; // mesh-space (chunk-local) bounds for precise culling
}; };