mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +00:00
fix: incorrect UV on custom model blocks
This commit is contained in:
parent
0ccfc2d3a0
commit
12105c2933
3 changed files with 4 additions and 7 deletions
|
|
@ -57,7 +57,7 @@ model::Model ModelsGenerator::fromCustom(
|
|||
) {
|
||||
auto model = model::Model();
|
||||
for (size_t i = 0; i < modelBoxes.size(); i++) {
|
||||
auto& mesh = model.addMesh("blocks:" + modelTextures[i * 6]);
|
||||
auto& mesh = model.addMesh("blocks:");
|
||||
mesh.lighting = lighting;
|
||||
const UVRegion boxtexfaces[6] = {
|
||||
get_region_for(modelTextures[i * 6 + 5], assets),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue