update BlocksRenderer::blockCustomModel

This commit is contained in:
MihailRis 2026-02-18 22:41:24 +03:00
parent 7abbe43c3c
commit 1cfd9fd2b1

View file

@ -310,6 +310,12 @@ void BlocksRenderer::blockCustomModel(
if (culled) {
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));