mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 19:11:50 +00:00
add BlockModel struct
This commit is contained in:
parent
718f5d1089
commit
20e3a961f9
12 changed files with 46 additions and 39 deletions
|
|
@ -453,7 +453,7 @@ void BlocksRenderer::render(
|
|||
int x = i % CHUNK_W;
|
||||
int y = i / (CHUNK_D * CHUNK_W);
|
||||
int z = (i / CHUNK_D) % CHUNK_W;
|
||||
switch (def.model) {
|
||||
switch (def.model.type) {
|
||||
case BlockModelType::BLOCK:
|
||||
blockCube({x, y, z}, texfaces, def, vox.state, !def.shadeless,
|
||||
def.ambientOcclusion);
|
||||
|
|
@ -516,7 +516,7 @@ SortingMeshData BlocksRenderer::renderTranslucent(
|
|||
int x = i % CHUNK_W;
|
||||
int y = i / (CHUNK_D * CHUNK_W);
|
||||
int z = (i / CHUNK_D) % CHUNK_W;
|
||||
switch (def.model) {
|
||||
switch (def.model.type) {
|
||||
case BlockModelType::BLOCK:
|
||||
blockCube({x, y, z}, texfaces, def, vox.state, !def.shadeless,
|
||||
def.ambientOcclusion);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue