mirror of
https://github.com/LucasDower/ObjToSchematic.git
synced 2024-12-09 02:49:57 +08:00
Fixed build atlas script
This commit is contained in:
parent
9691051b97
commit
d690393985
@ -308,10 +308,10 @@ async function buildAtlas() {
|
||||
}
|
||||
|
||||
textureDetails[textureName] = {
|
||||
texcoord: {
|
||||
u: 16 * (3 * offsetX + 1) / (atlasWidth * 3),
|
||||
v: 16 * (3 * offsetY + 1) / (atlasWidth * 3),
|
||||
},
|
||||
texcoord: new UV(
|
||||
16 * (3 * offsetX + 1) / (atlasWidth * 3),
|
||||
16 * (3 * offsetY + 1) / (atlasWidth * 3),
|
||||
),
|
||||
colour: getAverageColour(pngData),
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user