diff options
Diffstat (limited to 'src/World/Chunk.hpp')
| -rw-r--r-- | src/World/Chunk.hpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/World/Chunk.hpp b/src/World/Chunk.hpp index eafc613..0a5f269 100644 --- a/src/World/Chunk.hpp +++ b/src/World/Chunk.hpp @@ -5,8 +5,8 @@ #include "../Mesh.hpp" #include "BlockSide.hpp" -#define CHUNK_WIDTH 8 -#define CHUNK_HEIGHT 8 +#define CHUNK_WIDTH 16 +#define CHUNK_HEIGHT 32 namespace MC { @@ -18,6 +18,8 @@ public: Mesh mesh(); private: + bool is_face_visible(uint32_t x, uint32_t y, uint32_t z, BlockSide side); + static std::array<Vector<2>, 4> face_tex_coords(BlockType type, BlockSide side); struct BlockData { |
