summary refs log tree commit diff
path: root/src/World/Chunk.hpp
diff options
context:
space:
mode:
authorMel <einebeere@gmail.com>2022-10-18 19:09:36 +0200
committerMel <einebeere@gmail.com>2022-10-18 19:09:36 +0200
commit0464a83dfaebaa75d6e2d3b7431e84ebd83fccfd (patch)
treeccc0cce73cd94d7990a1f45c3e213ea1e8cd61f8 /src/World/Chunk.hpp
parentebad1227aaafbd962756155732f0ec39085f7d51 (diff)
downloadmeowcraft-0464a83dfaebaa75d6e2d3b7431e84ebd83fccfd.tar.zst
meowcraft-0464a83dfaebaa75d6e2d3b7431e84ebd83fccfd.zip
Hide inward-facing block faces
Diffstat (limited to 'src/World/Chunk.hpp')
-rw-r--r--src/World/Chunk.hpp6
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 {