From 2a64f845d5eace69e69e3aa3d297b205408d61e0 Mon Sep 17 00:00:00 2001 From: kion Date: Wed, 31 Jul 2024 06:42:11 +0900 Subject: [PATCH] adjusting u texture coord --- src/EncodeModel.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/EncodeModel.ts b/src/EncodeModel.ts index f802eb0..eb5b2c2 100644 --- a/src/EncodeModel.ts +++ b/src/EncodeModel.ts @@ -163,7 +163,7 @@ const encodeMesh = (obj: string, materialIndex: number): Primitive => { const vAdjusted = vRaw / PIXEL_TO_FLOAT_RATIO - PIXEL_ADJUSTMEST; // // Eniminate rounding to make sure it's a pixel reference - const uFloor = Math.floor(uAdjusted); + const uFloor = Math.floor(uAdjusted) + 1; const vFloor = Math.floor(vAdjusted); // // Make sure it fits in one byte