mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 11:31:49 +00:00
version set to 0.18 + WorldGenerator indents fix
This commit is contained in:
parent
cec8d75b7d
commit
1e12f80dd6
6 changed files with 190 additions and 216 deletions
|
|
@ -104,18 +104,6 @@ bool Chunk::decode(ubyte* data) {
|
|||
return true;
|
||||
}
|
||||
|
||||
/*
|
||||
* Convert chunk voxels data from 16 bit to 32 bit
|
||||
*/
|
||||
void Chunk::fromOld(ubyte* data) {
|
||||
for (size_t i = 0; i < CHUNK_VOL; i++) {
|
||||
data[i + CHUNK_VOL*3] = data[i + CHUNK_VOL];
|
||||
data[i + CHUNK_VOL] = data[i];
|
||||
data[i + CHUNK_VOL*2] = 0;
|
||||
data[i] = 0;
|
||||
}
|
||||
}
|
||||
|
||||
void Chunk::convert(ubyte* data, const ContentLUT* lut) {
|
||||
for (size_t i = 0; i < CHUNK_VOL; i++) {
|
||||
// see encode method to understand what the hell is going on here
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue