mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
add BlockModel struct
This commit is contained in:
parent
718f5d1089
commit
20e3a961f9
12 changed files with 46 additions and 39 deletions
|
|
@ -44,7 +44,7 @@ void BlockWrapsRenderer::draw(const BlockWrapper& wrapper) {
|
|||
}
|
||||
if (vox->id != BLOCK_VOID) {
|
||||
const auto& def = level.content.getIndices()->blocks.require(vox->id);
|
||||
switch (def.model) {
|
||||
switch (def.model.type) {
|
||||
case BlockModelType::BLOCK:
|
||||
batch->cube(
|
||||
glm::vec3(wrapper.position) + glm::vec3(0.5f),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue