X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fchunk.hpp;h=06dc98bab34075ba0234103a572f1f17b55609b9;hb=35c09fc00094a3d390732fd533b2bd03413d90c7;hp=4f6732d39d84789a64e46fdb381a574b49316f33;hpb=4485397da18a25dfd1a51e864814887b66ba0f2e;p=blank.git diff --git a/src/chunk.hpp b/src/chunk.hpp index 4f6732d..06dc98b 100644 --- a/src/chunk.hpp +++ b/src/chunk.hpp @@ -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,