From 5a9e48d6aa704f375e266385b3885c7b25fabe11 Mon Sep 17 00:00:00 2001 From: memelotsqui Date: Fri, 8 Mar 2024 12:29:36 -0600 Subject: [PATCH] remove debug code --- src/library/create-texture-atlas.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/library/create-texture-atlas.js b/src/library/create-texture-atlas.js index d90c690b..bcc1db5a 100644 --- a/src/library/create-texture-atlas.js +++ b/src/library/create-texture-atlas.js @@ -368,7 +368,7 @@ export const createTextureAtlasBrowser = async ({ backColor, meshes, atlasSize, } // iterate through imageToMaterialMapping[name] and find the first image that is not null let texture = getTexture(material, imageToMaterialMapping[name].find((textureName) => getTextureImage(material, textureName))); - const imgData = RenderTextureImageData(texture, multiplyColor, clearColor, ATLAS_SIZE_PX, ATLAS_SIZE_PX, name == 'diffuse' && transparentTexture, name == 'orm'); + const imgData = RenderTextureImageData(texture, multiplyColor, clearColor, ATLAS_SIZE_PX, ATLAS_SIZE_PX, name == 'diffuse' && transparentTexture); createImageBitmap(imgData)// bmp is trasnaprent .then((bmp) => context.drawImage(bmp, min.x * ATLAS_SIZE_PX, min.y * ATLAS_SIZE_PX, xTileSize, yTileSize)); }