diff options
| author | Mel <einebeere@gmail.com> | 2023-07-10 17:37:41 +0200 |
|---|---|---|
| committer | Mel <einebeere@gmail.com> | 2023-07-10 17:37:41 +0200 |
| commit | d83f8fdb062ed3c2bdb41117e7304c22cc481003 (patch) | |
| tree | d17746e3fff9376a14fec879645781e4283b147e /src/World/World.hpp | |
| parent | 354a49d852d8f9ed9b66d7780ba43ce3a9ec59d7 (diff) | |
| download | meowcraft-d83f8fdb062ed3c2bdb41117e7304c22cc481003.tar.zst meowcraft-d83f8fdb062ed3c2bdb41117e7304c22cc481003.zip | |
Sort chunks for correct alpha blending (only works for the simple plane water mesh)
Diffstat (limited to 'src/World/World.hpp')
| -rw-r--r-- | src/World/World.hpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/World/World.hpp b/src/World/World.hpp index c931ee4..71156f4 100644 --- a/src/World/World.hpp +++ b/src/World/World.hpp @@ -37,9 +37,8 @@ public: Real get_average_chunk_time() const; private: - std::unordered_set<ChunkIndex> get_visible_chunk_indices(Vector<3> position) const; - std::unordered_set<ChunkIndex> load_finished_chunks_from_queue(); - void process_chunk_visibility_updates(const std::unordered_set<ChunkIndex>& new_chunks, Vector<3> player); + std::vector<ChunkIndex> get_visible_chunk_indices(Vector<3> position) const; + void load_finished_chunks_from_queue(); void request_generation(ChunkIndex index, Real priority); void try_to_create_mesh_for_chunk(ChunkData& data); @@ -59,7 +58,6 @@ private: Generation::Generator m_generator; std::unordered_map<ChunkIndex, ChunkData> m_chunks; - std::unordered_set<ChunkIndex> m_visible_chunks; struct Statistics { UInt chunk_time_sample_count; |
