mirror of
https://github.com/Relintai/voxelman.git
synced 2024-11-20 10:47:19 +01:00
Changed the default lod stup for VoxelWorldDefault::_create_chunk, as nothing supports normal lods in this module. (Normal lods would be lods created with the Transvoxel algorithm for example.)
This commit is contained in:
parent
edfd23365a
commit
8d7289b0b3
@ -198,13 +198,7 @@ Ref<VoxelChunk> VoxelWorldDefault::_create_chunk(int x, int y, int z, Ref<VoxelC
|
||||
tj->add_jobs_step(s);
|
||||
|
||||
s.instance();
|
||||
s->set_job_type(VoxelMesherJobStep::TYPE_NORMAL_LOD);
|
||||
s->set_lod_index(1);
|
||||
tj->add_jobs_step(s);
|
||||
|
||||
s.instance();
|
||||
s->set_job_type(VoxelMesherJobStep::TYPE_NORMAL_LOD);
|
||||
s->set_lod_index(2);
|
||||
s->set_job_type(VoxelMesherJobStep::TYPE_DROP_UV2);
|
||||
tj->add_jobs_step(s);
|
||||
|
||||
s.instance();
|
||||
@ -215,6 +209,15 @@ Ref<VoxelChunk> VoxelWorldDefault::_create_chunk(int x, int y, int z, Ref<VoxelC
|
||||
s->set_job_type(VoxelMesherJobStep::TYPE_BAKE_TEXTURE);
|
||||
tj->add_jobs_step(s);
|
||||
|
||||
#ifdef MESH_UTILS_PRESENT
|
||||
s.instance();
|
||||
s->set_job_type(VoxelMesherJobStep::TYPE_SIMPLIFY_MESH);
|
||||
s->set_simplification_step_ratio(0.8);
|
||||
s->set_simplification_agressiveness(7);
|
||||
s->set_simplification_steps(1);
|
||||
tj->add_jobs_step(s);
|
||||
#endif
|
||||
|
||||
chunk->job_add(lj);
|
||||
chunk->job_add(tj);
|
||||
chunk->job_add(pj);
|
||||
|
Loading…
Reference in New Issue
Block a user