Fixed build atlas script

This commit is contained in:
Lucas Dower 2022-03-19 01:20:47 +00:00
parent 9691051b97
commit d690393985

View File

@ -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),
},