Skip to content

Commit

Permalink
remove debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
memelotsqui committed Mar 8, 2024
1 parent b81f60f commit 5a9e48d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/library/create-texture-atlas.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

0 comments on commit 5a9e48d

Please sign in to comment.