mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-09 13:01:49 +00:00
util/dataio + Lightmap.encode
This commit is contained in:
parent
93182869d3
commit
6b423b441f
5 changed files with 92 additions and 29 deletions
|
|
@ -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_ */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue