-
Notifications
You must be signed in to change notification settings - Fork 7.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bitmapmask distort image while resizing canvas #6527
Comments
Don't know if its related but it also happens when I use Rex's KawaseBlur shader. |
@Arcturous Yes, it is related. |
Thank you for submitting this issue. We have fixed this and the fix has been pushed to the |
Hi i tried against current master and unfortunately it is not fixed Also tried with https://labs.phaser.io/edit.html?src=src/game%20objects/render%20texture/render%20texture%20as%20a%20mask.js&v=dev Following code: class Example extends Phaser.Scene
{
preload ()
{
this.load.image('brush', 'assets/sprites/brush1.png');
this.load.image('pic', 'assets/pics/brilliance-jim-sachs.png');
}
create ()
{
this.game.scale.resize(800, 600);
const rt = this.add.renderTexture(400, 300, 800, 600);
const mask = rt.createBitmapMask();
const pic = this.add.image(400, 300, 'pic');
pic.setMask(mask);
this.input.on('pointermove', pointer =>
{
if (pointer.isDown)
{
rt.draw('brush', pointer.x - 32, pointer.y - 32);
}
}, this);
this.input.keyboard.on('keydown-SPACE', event =>
{
rt.resize(400, 300);
});
}
}
const config = {
type: Phaser.AUTO,
parent: 'phaser-example',
width: 400,
height: 300,
scene: Example
};
const game = new Phaser.Game(config); And it is broken as well |
The example is completely broken with the link you provided. I also experience the same on my project when i try the latest beta. |
Version
Description
Apply bitmap mask to a layer, then resize game canvas. The render result is not correct.
Example Test Code
Test code
Additional Information
This issue is similar with #6503
The text was updated successfully, but these errors were encountered: