On window resize, the player camera zoom in/out.
this.renderer = new PIXI.autoDetectRenderer(cfg.scopeInitX, cfg.scopeInitY, {
view: this.canvas
});
this.stage = new PIXI.Container();
const text = new PIXI.Text("Test");
text.style = {
fontSize: '25px',
};
this.stage.addChild(text);
//...
//on resize (new scale computed)
this.renderer.resize(this.canvas.width, this.canvas.height);
this.stage.scale.set(scale);
Resizing makes all the texts inside the stage (scale != 1) blurred.
Do you have a solution to avoid that? I've read solutions about setting new .RESOLUTION, but no result...
Thanks.