mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
add variants (WIP)
This commit is contained in:
parent
01181b6403
commit
5478d121f0
16 changed files with 275 additions and 177 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.type) {
|
||||
switch (def.getModel(vox->state.userbits).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