fix texture index for second row

This commit is contained in:
LabyStudio
2022-02-03 01:31:05 +01:00
parent 0a16cb9721
commit 3f8d63cb7f
@@ -38,7 +38,7 @@ window.BlockRenderer = class {
let textureIndex = block.getTextureForFace(face);
let minU = (textureIndex % 16) / 16.0;
let maxU = minU + (16 / 256);
let minV = Math.floor(textureIndex / 16);
let minV = Math.floor(textureIndex / 16) / 16.0;
let maxV = minV + (16 / 256);
// Flip V