From 8616ce6a0bfd4a6c31d4f6dded4137ad9eb2ba2f Mon Sep 17 00:00:00 2001 From: LaG1924 <12997935+LaG1924@users.noreply.github.com> Date: Tue, 13 Mar 2018 21:55:58 +0500 Subject: Optimized light parsing --- src/World.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/World.hpp') diff --git a/src/World.hpp b/src/World.hpp index 6800e46..165e73d 100644 --- a/src/World.hpp +++ b/src/World.hpp @@ -87,5 +87,9 @@ public: unsigned char GetBlockLight(Vector pos); + unsigned char GetBlockLight(const Vector &blockPos, const Section *section, const Section *xp, const Section *xn, const Section *yp, const Section *yn, const Section *zp, const Section *zn); + unsigned char GetBlockSkyLight(Vector pos); + + unsigned char GetBlockSkyLight(const Vector &blockPos, const Section *section, const Section *xp, const Section *xn, const Section *yp, const Section *yn, const Section *zp, const Section *zn); }; \ No newline at end of file -- cgit v1.2.3