mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 10:31:50 +00:00
fix clang warnings
This commit is contained in:
parent
4c2a85acbe
commit
69f995b2a0
2 changed files with 1 additions and 2 deletions
|
|
@ -15,7 +15,6 @@ const float DIRECTIONAL_LIGHT_FACTOR = 0.3f;
|
|||
namespace {
|
||||
static constexpr float K_CHUNK_CENTER_BIAS = 0.5f;
|
||||
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) {
|
||||
if (!init) { aabb.a = aabb.b = p; init = true; } else { aabb.addPoint(p); }
|
||||
|
|
|
|||
|
|
@ -52,5 +52,5 @@ struct ChunkMesh {
|
|||
std::unique_ptr<Mesh<ChunkVertex>> mesh;
|
||||
SortingMeshData sortingMeshData;
|
||||
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
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue