Changing data block size is not supported at the moment
parent
e6f1be6ac3
commit
16b7445d1d
|
@ -339,7 +339,7 @@ void VoxelLodTerrain::_on_stream_params_changed() {
|
|||
update_configuration_warning();
|
||||
}
|
||||
|
||||
void VoxelLodTerrain::set_data_block_size_po2(unsigned int p_block_size_po2) {
|
||||
/*void VoxelLodTerrain::set_data_block_size_po2(unsigned int p_block_size_po2) {
|
||||
ERR_FAIL_COND(p_block_size_po2 < 1);
|
||||
ERR_FAIL_COND(p_block_size_po2 > 32);
|
||||
|
||||
|
@ -353,7 +353,7 @@ void VoxelLodTerrain::set_data_block_size_po2(unsigned int p_block_size_po2) {
|
|||
}
|
||||
|
||||
_on_stream_params_changed();
|
||||
}
|
||||
}*/
|
||||
|
||||
void VoxelLodTerrain::set_mesh_block_size(unsigned int mesh_block_size) {
|
||||
mesh_block_size = clamp(mesh_block_size, get_data_block_size(), VoxelConstants::MAX_BLOCK_SIZE);
|
||||
|
|
|
@ -73,7 +73,7 @@ public:
|
|||
|
||||
unsigned int get_data_block_size_pow2() const;
|
||||
unsigned int get_data_block_size() const;
|
||||
void set_data_block_size_po2(unsigned int p_block_size_po2);
|
||||
//void set_data_block_size_po2(unsigned int p_block_size_po2);
|
||||
|
||||
unsigned int get_mesh_block_size_pow2() const;
|
||||
unsigned int get_mesh_block_size() const;
|
||||
|
|
|
@ -153,7 +153,7 @@ Ref<VoxelGenerator> VoxelTerrain::get_generator() const {
|
|||
return _generator;
|
||||
}
|
||||
|
||||
void VoxelTerrain::set_data_block_size_po2(unsigned int p_block_size_po2) {
|
||||
/*void VoxelTerrain::set_data_block_size_po2(unsigned int p_block_size_po2) {
|
||||
ERR_FAIL_COND(p_block_size_po2 < 1);
|
||||
ERR_FAIL_COND(p_block_size_po2 > 32);
|
||||
|
||||
|
@ -168,7 +168,7 @@ void VoxelTerrain::set_data_block_size_po2(unsigned int p_block_size_po2) {
|
|||
|
||||
_set_block_size_po2(block_size_po2);
|
||||
_on_stream_params_changed();
|
||||
}
|
||||
}*/
|
||||
|
||||
void VoxelTerrain::_set_block_size_po2(int p_block_size_po2) {
|
||||
_data_map.create(p_block_size_po2, 0);
|
||||
|
|
|
@ -32,7 +32,7 @@ public:
|
|||
|
||||
unsigned int get_data_block_size_pow2() const;
|
||||
inline unsigned int get_data_block_size() const { return 1 << get_data_block_size_pow2(); }
|
||||
void set_data_block_size_po2(unsigned int p_block_size_po2);
|
||||
//void set_data_block_size_po2(unsigned int p_block_size_po2);
|
||||
|
||||
unsigned int get_mesh_block_size_pow2() const;
|
||||
inline unsigned int get_mesh_block_size() const { return 1 << get_mesh_block_size_pow2(); }
|
||||
|
|
Loading…
Reference in New Issue