mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
add extended blocks (block size property)
This commit is contained in:
parent
f181086d2a
commit
8aa6d5ee2d
9 changed files with 146 additions and 30 deletions
|
|
@ -414,9 +414,11 @@ void BlocksRenderer::render(const voxel* voxels) {
|
|||
for (int i = begin; i < end; i++) {
|
||||
const voxel& vox = voxels[i];
|
||||
blockid_t id = vox.id;
|
||||
blockstate state = vox.state;
|
||||
const Block& def = *blockDefsCache[id];
|
||||
if (id == 0 || def.drawGroup != drawGroup)
|
||||
if (id == 0 || def.drawGroup != drawGroup || state.segment) {
|
||||
continue;
|
||||
}
|
||||
const UVRegion texfaces[6]{ cache->getRegion(id, 0),
|
||||
cache->getRegion(id, 1),
|
||||
cache->getRegion(id, 2),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue