diff --git a/.changeset/rare-beans-dream.md b/.changeset/rare-beans-dream.md new file mode 100644 index 0000000..c41548f --- /dev/null +++ b/.changeset/rare-beans-dream.md @@ -0,0 +1,5 @@ +--- +"@threejs-kit/instanced-sprite-mesh": minor +--- + +mesh.flipX.at() function fixed. Removed console .logs diff --git a/packages/instanced-sprite-mesh/src/animationRunner.ts b/packages/instanced-sprite-mesh/src/animationRunner.ts index cc4ea81..c052ff1 100644 --- a/packages/instanced-sprite-mesh/src/animationRunner.ts +++ b/packages/instanced-sprite-mesh/src/animationRunner.ts @@ -166,8 +166,6 @@ export const initAnimationRunner = ( const computeTextureSize = findFirstPow2LargerThan(Math.sqrt(instanceCount)); - console.log({ computeTextureSize }); - const gpuCompute = new GPUComputationRenderer( computeTextureSize, computeTextureSize, diff --git a/packages/instanced-sprite-mesh/src/material.ts b/packages/instanced-sprite-mesh/src/material.ts index 18aa916..a5b1177 100644 --- a/packages/instanced-sprite-mesh/src/material.ts +++ b/packages/instanced-sprite-mesh/src/material.ts @@ -269,8 +269,6 @@ export const makeDataTexture = (data: SpritesheetFormat) => { const { frames, animationLengths, animations } = data; // find the longest array to determine data width uniform - console.log({ data }); - const dataWidth = Math.max( frames.length, animationLengths.length, @@ -302,7 +300,6 @@ export const makeDataTexture = (data: SpritesheetFormat) => { for (let i = 0; i < Object.keys(animations).length; i++) { const key = Object.keys(animations)[i]; animMap.set(key, i); - console.log(animations[key]); const aFrames = animations[key] .map((a) => { return [...a, 0, 0];