mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-11-21 09:59:44 +00:00
upgrade entities frustum culling
This commit is contained in:
parent
414a0947ab
commit
c21871c3c9
9 changed files with 206 additions and 63 deletions
|
|
@ -134,6 +134,7 @@ public:
|
|||
auto model = std::make_unique<Model>();
|
||||
buildMeshes(*model);
|
||||
model->clean();
|
||||
model->calcBounds();
|
||||
return model;
|
||||
}
|
||||
};
|
||||
|
|
|
|||
|
|
@ -469,6 +469,7 @@ static VcmModel load_model(const xmlelement& root) {
|
|||
perform_element(*elem, builder, ctx);
|
||||
}
|
||||
|
||||
model.calcBounds();
|
||||
vcmModel.parts["root"] = std::move(model);
|
||||
vcmModel.skeleton = SkeletonConfig(
|
||||
"",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue