rhythmras Posted February 26, 2023 Author Share Posted February 26, 2023 Hello, I'm sorry to bother you again, in the latest version I found that the blending mode doesn't seem to work. "pixi-spine": "^4.0.3", "pixi.js": "^7.1.3", async load(url: string) { Assets.add(url, url, { imageMetadata: { alphaMode: ALPHA_MODES.PMA } }); const res = await Assets.load<spineData>(url, (progress) => { console.log(progress); }); // res.spineAtlas.pages.forEach(p => { // p.baseTexture.alphaMode = ALPHA_MODES.PMA; // }); console.log(res); const spine = new Spine(res.spineData!); const { width, height } = app.PIXI.renderer; spine.position.set(width / 2, height / 2); spine.scale.set(2000 / spine.width); spine.state.setAnimation(0, 'wait', true); app.addChild(spine); } Quote Link to comment Share on other sites More sharing options...
rhythmras Posted March 8, 2023 Author Share Posted March 8, 2023 @ivan.popelyshev Hello, in the latest version, setting the alphaMode property of baseTexture does not take effect... Quote Link to comment Share on other sites More sharing options...
rhythmras Posted March 15, 2023 Author Share Posted March 15, 2023 On 3/9/2023 at 4:03 AM, rhythmras said: @ivan.popelyshev Hello, in the latest version, setting the alphaMode property of baseTexture does not take effect... found the solution https://github.com/pixijs/pixijs/issues/9141 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.