mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 11:31:49 +00:00
fix block solidity property
This commit is contained in:
parent
325f0b1f02
commit
5fdff1f8f6
3 changed files with 18 additions and 8 deletions
|
|
@ -130,8 +130,9 @@ class BlocksRenderer {
|
|||
return false;
|
||||
}
|
||||
const auto& block = *blockDefsCache[vox.id];
|
||||
uint8_t otherDrawGroup = block.getVariant(vox.state.userbits).drawGroup;
|
||||
if ((otherDrawGroup && (otherDrawGroup != variant.drawGroup)) || !block.rt.solid) {
|
||||
const auto& blockVariant = block.getVariant(vox.state.userbits);
|
||||
uint8_t otherDrawGroup = blockVariant.drawGroup;
|
||||
if ((otherDrawGroup && (otherDrawGroup != variant.drawGroup)) || !blockVariant.rt.solid) {
|
||||
return true;
|
||||
}
|
||||
if ((variant.culling == CullingMode::DISABLED ||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue