Set num_lods in _create_chunk for now, it really needs to be removed though.

This commit is contained in:
Relintai 2022-02-09 14:10:58 +01:00
parent a67bc1eeba
commit 0ab76c86bc
4 changed files with 13 additions and 1 deletions

View File

@ -107,6 +107,9 @@ Ref<VoxelChunk> VoxelWorldBlocky::_create_chunk(int x, int y, int z, Ref<VoxelCh
chunk->job_add(lj);
chunk->job_add(tj);
chunk->job_add(pj);
// TODO this should be removed
set_num_lods(5);
}
return VoxelWorld::_create_chunk(x, y, z, chunk);

View File

@ -108,6 +108,9 @@ Ref<VoxelChunk> VoxelWorldCubic::_create_chunk(int x, int y, int z, Ref<VoxelChu
chunk->job_add(lj);
chunk->job_add(tj);
chunk->job_add(pj);
// TODO this should be removed
set_num_lods(5);
}
return VoxelWorld::_create_chunk(x, y, z, chunk);

View File

@ -253,6 +253,9 @@ Ref<VoxelChunk> VoxelWorldDefault::_create_chunk(int x, int y, int z, Ref<VoxelC
chunk->job_add(lj);
chunk->job_add(tj);
chunk->job_add(pj);
// TODO this should be removed
set_num_lods(5);
}
Ref<VoxelChunkDefault> vcd = chunk;
@ -291,7 +294,7 @@ VoxelWorldDefault::VoxelWorldDefault() {
_lod_update_timer = 0;
_lod_update_interval = 0.5;
_build_flags = VoxelChunkDefault::BUILD_FLAG_CREATE_COLLIDER | VoxelChunkDefault::BUILD_FLAG_CREATE_LODS;
_num_lods = 4;
_num_lods = 0;
set_data_margin_start(1);
set_data_margin_end(1);

View File

@ -109,6 +109,9 @@ Ref<VoxelChunk> VoxelWorldMarchingCubes::_create_chunk(int x, int y, int z, Ref<
chunk->job_add(lj);
chunk->job_add(tj);
chunk->job_add(pj);
// TODO this should be removed
set_num_lods(5);
}
return VoxelWorld::_create_chunk(x, y, z, chunk);