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
|
|
@ -62,6 +62,7 @@ std::unique_ptr<Content> ContentBuilder::build() {
|
|||
def.rt.id = blockDefsIndices.size();
|
||||
def.rt.emissive = *reinterpret_cast<uint32_t*>(def.emission);
|
||||
def.rt.solid = def.model == BlockModel::block;
|
||||
def.rt.extended = def.size.x > 1 || def.size.y > 1 || def.size.z > 1;
|
||||
|
||||
if (def.rotatable) {
|
||||
for (uint i = 0; i < BlockRotProfile::MAX_COUNT; i++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue