mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-13 06:51:51 +00:00
Voxel changed from 16 bit to 32 bit + new lua functions
This commit is contained in:
parent
460b08a006
commit
06f66ffd71
10 changed files with 229 additions and 36 deletions
|
|
@ -12,7 +12,7 @@ struct ChunkFlag{
|
|||
static const int UNSAVED = 0x10;
|
||||
static const int LOADED_LIGHTS = 0x20;
|
||||
};
|
||||
#define CHUNK_DATA_LEN (CHUNK_VOL*2)
|
||||
#define CHUNK_DATA_LEN (CHUNK_VOL*4)
|
||||
|
||||
struct voxel;
|
||||
class Lightmap;
|
||||
|
|
@ -78,6 +78,7 @@ public:
|
|||
ubyte* encode() const;
|
||||
bool decode(ubyte* data);
|
||||
|
||||
static void fromOld(ubyte* data);
|
||||
static void convert(ubyte* data, const ContentLUT* lut);
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue