mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-13 15:01:49 +00:00
update BlocksRenderer::blockCustomModel
This commit is contained in:
parent
7abbe43c3c
commit
1cfd9fd2b1
1 changed files with 6 additions and 0 deletions
|
|
@ -310,6 +310,12 @@ void BlocksRenderer::blockCustomModel(
|
||||||
if (culled) {
|
if (culled) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
meshAABB.addPoint(
|
||||||
|
coord + X * glm::vec3(block.size.x) +
|
||||||
|
Y * glm::vec3(block.size.y) +
|
||||||
|
Z * glm::vec3(block.size.z)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const auto& model = cache.getModel(block.rt.id, block.getVariantIndex(states.userbits));
|
const auto& model = cache.getModel(block.rt.id, block.getVariantIndex(states.userbits));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue