diff options
| author | Mel <einebeere@gmail.com> | 2023-07-10 04:42:49 +0200 |
|---|---|---|
| committer | Mel <einebeere@gmail.com> | 2023-07-10 04:42:49 +0200 |
| commit | 354a49d852d8f9ed9b66d7780ba43ce3a9ec59d7 (patch) | |
| tree | 5f311f6aa47db9a231164a82403cc0e1e53864e8 /src/World/World.hpp | |
| parent | 22aeb320b193705f493747714404c8ddc752919b (diff) | |
| download | meowcraft-354a49d852d8f9ed9b66d7780ba43ce3a9ec59d7.tar.zst meowcraft-354a49d852d8f9ed9b66d7780ba43ce3a9ec59d7.zip | |
Separate transparent water mesh (not sorted, bad)
Diffstat (limited to 'src/World/World.hpp')
| -rw-r--r-- | src/World/World.hpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/World/World.hpp b/src/World/World.hpp index a094526..c931ee4 100644 --- a/src/World/World.hpp +++ b/src/World/World.hpp @@ -24,8 +24,12 @@ public: ChunkIndex index; ChunkStatus status; std::optional<Chunk> chunk = {}; - std::optional<GFX::Mesh> mesh_data = {}; - std::optional<GFX::BindableMesh> mesh = {}; + + std::optional<GFX::Mesh> land_mesh_data = {}; + std::optional<GFX::Mesh> water_mesh_data = {}; + + std::optional<GFX::BindableMesh> land_mesh = {}; + std::optional<GFX::BindableMesh> water_mesh = {}; }; std::vector<ChunkData*> get_visible_chunks(Vector<3> position); @@ -45,7 +49,7 @@ private: static U64 timestamp(); - U8 m_view_distance_radius = 13; + U8 m_view_distance_radius = 10; struct GenerationResult { Chunk chunk; |
