diff options
author | tylermurphy534 <tylermurphy534@gmail.com> | 2022-10-01 14:12:54 -0400 |
---|---|---|
committer | tylermurphy534 <tylermurphy534@gmail.com> | 2022-10-01 14:12:54 -0400 |
commit | a82704af889ee0323cadf4ce024f5baf453639eb (patch) | |
tree | a5fa90cad60f1c57fe2d29b4331aa1fe6d19bd0c /src/chunk.hpp | |
parent | finalize greedy meshing (diff) | |
download | minecraftvulkan-a82704af889ee0323cadf4ce024f5baf453639eb.tar.gz minecraftvulkan-a82704af889ee0323cadf4ce024f5baf453639eb.tar.bz2 minecraftvulkan-a82704af889ee0323cadf4ce024f5baf453639eb.zip |
variable chunk sizes
Diffstat (limited to 'src/chunk.hpp')
-rw-r--r-- | src/chunk.hpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/chunk.hpp b/src/chunk.hpp index 33cab10..59264fd 100644 --- a/src/chunk.hpp +++ b/src/chunk.hpp @@ -38,8 +38,6 @@ #define SHRUB_TEXTURE "res/image/shrub.png" #define SHRUB_TOP_TEXTURE "res/image/shrub_top.png" -static constexpr int WATER_LEVEL = 20; - namespace app { struct Block { @@ -50,6 +48,9 @@ class Chunk { public: + static constexpr int WATER_LEVEL = 20; + static constexpr glm::ivec3 CHUNK_SIZE{32, 256, 32}; + static void load(); static void unload(); static std::vector<xe::Image*>& getTextures(); |