Hi,
When using compressed textures and enabling pixelPerfect input i get errors when mouse over the interactive object
drawImage
[native code] (0:0)
getPixelAlpha
node_modules/.pnpm/phaser@3.88.2/node_modules/phaser/dist/phaser.js (217295:30)
<unknown>
node_modules/.pnpm/phaser@3.88.2/node_modules/phaser/dist/phaser.js (102679:49)
pointWithinHitArea
node_modules/.pnpm/phaser@3.88.2/node_modules/phaser/dist/phaser.js (103663:43)
hitTest
node_modules/.pnpm/phaser@3.88.2/node_modules/phaser/dist/phaser.js (103630:40)
hitTestPointer
node_modules/.pnpm/phaser@3.88.2/node_modules/phaser/dist/phaser.js (104776:44)
update
node_modules/.pnpm/phaser@3.88.2/node_modules/phaser/dist/phaser.js (104526:45)
updateInputPlugins
node_modules/.pnpm/phaser@3.88.2/node_modules/phaser/dist/phaser.js (103228:53)
onMouseMove
node_modules/.pnpm/phaser@3.88.2/node_modules/phaser/dist/phaser.js (103451:32)
I’m using Phaser 3.88.2 and loading compressed textures in .pvr/ASTC using TexturePacker cli with following command
TexturePacker --size-constraints POT --texture-format pvr3 --opt ASTC_8x8 --astc-quality 3 --alpha-handling PremultiplyAlpha --format spritesheet-only --sheet ${outputFilePath} ${inputFilePath}
texture is loaded through scene.load.texture
example texture here, the texture renders fine visually just fails input with pixelperfect
Example pvr texture
using uncompressed textures pixelperfect works as expected
Any idea if this is a known issue and has some fix?