mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
optimize ModelBatch
This commit is contained in:
parent
4197746c69
commit
fba0bca0dc
3 changed files with 21 additions and 84 deletions
|
|
@ -99,9 +99,8 @@ void SkeletonConfig::render(
|
|||
}
|
||||
model = modelOverride.model ? modelOverride.model : model;
|
||||
if (model) {
|
||||
batch.pushMatrix(skeleton.calculated.matrices[i]);
|
||||
batch.draw(model, &skeleton.textures);
|
||||
batch.popMatrix();
|
||||
batch.draw(
|
||||
skeleton.calculated.matrices[i], model, &skeleton.textures);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue