]> git.localhorst.tv Git - blank.git/blobdiff - src/chunk.hpp
added ability to get seperate information about block face obstruction
[blank.git] / src / chunk.hpp
index 4f6732d39d84789a64e46fdb381a574b49316f33..06dc98bab34075ba0234103a572f1f17b55609b9 100644 (file)
@@ -88,8 +88,8 @@ public:
        void Unlink();
        void Relink();
 
-       // check if block at given index is completely enclosed (and therefore invisible)
-       bool Obstructed(int idx) const;
+       // check which faces of a block at given index are obstructed (and therefore invisible)
+       Block::FaceSet Obstructed(int idx) const;
 
        void Invalidate() { dirty = true; }
 
@@ -111,7 +111,7 @@ public:
        int GetLight(const Pos &pos) const { return GetLight(ToIndex(pos)); }
        int GetLight(const Block::Pos &pos) const { return GetLight(ToIndex(pos)); }
 
-       float GetVertexLight(int index, const BlockModel::Position &, const BlockModel::Normal &) const;
+       float GetVertexLight(int index, const BlockModel::Position &, const Model::Normal &) const;
 
        bool Intersection(
                const Ray &ray,