diff options
| author | untodesu <kirill@untode.su> | 2025-03-19 18:07:51 +0500 |
|---|---|---|
| committer | untodesu <kirill@untode.su> | 2025-03-19 18:07:51 +0500 |
| commit | fddd7f761176bb45cfdd41eeccaeadac22d33ddf (patch) | |
| tree | 96fdc781f2cd96e769c148e850e411a90ff1ad5b /game/client/chunk_mesher.cc | |
| parent | 1c138d80ac08dfc48f0916c568f780e15db73834 (diff) | |
| download | voxelius-fddd7f761176bb45cfdd41eeccaeadac22d33ddf.tar.bz2 voxelius-fddd7f761176bb45cfdd41eeccaeadac22d33ddf.zip | |
Fix things and improve worldgen
- Client-side now actually deletes invisible chunks
- Improved world generation to use a second noise generator alongside
changing how caves are generated (ie what noise they use)
Diffstat (limited to 'game/client/chunk_mesher.cc')
| -rw-r--r-- | game/client/chunk_mesher.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/game/client/chunk_mesher.cc b/game/client/chunk_mesher.cc index 1eb14c1..011d6a7 100644 --- a/game/client/chunk_mesher.cc +++ b/game/client/chunk_mesher.cc @@ -10,7 +10,6 @@ #include "shared/voxel_registry.hh" #include "client/chunk_quad.hh" -#include "client/chunk_visibility.hh" #include "client/globals.hh" #include "client/session.hh" #include "client/voxel_atlas.hh" @@ -222,9 +221,9 @@ void GL_MeshingTask::finalize(void) } } - if(has_no_submeshes_b && has_no_submeshes_nb) + if(has_no_submeshes_b && has_no_submeshes_nb) { globals::dimension->chunks.remove<ChunkMeshComponent>(m_entity); - else chunk_visibility::update_chunk(m_entity); + } } bool GL_MeshingTask::vis_test(voxel_id voxel, const VoxelInfo *info, const local_pos &lpos) const |
