util/dataio + Lightmap.encode

This commit is contained in:
MihailRis
2023-12-06 14:44:16 +03:00
parent 93182869d3
commit 6b423b441f
5 changed files with 92 additions and 29 deletions
+3
View File
@@ -2,6 +2,7 @@
#define LIGHTING_LIGHTMAP_H_
#include "../constants.h"
#include "../typedefs.h"
#include "../voxels/Chunk.h"
// Lichtkarte
@@ -78,6 +79,8 @@ public:
static inline light_t extract(light_t light, ubyte channel) {
return (light >> (channel << 2)) & 0xF;
}
ubyte* encode() const;
};
#endif /* LIGHTING_LIGHTMAP_H_ */