hpcodecraft Posted February 9, 2014 Share Posted February 9, 2014 Hello, I just upgraded from 1.1.3 to 1.1.4 and now I'm having some trouble with getting the crisp rendering working again.In my boot state, I use Phaser.Canvas.setSmoothingEnabled(this.game.context, false);This worked great in 1.1.3 but now it doesn't anymore. My sprites are all being scaled on creation and this somehow seems to reset the imageSmoothing. After some digging in the phaser code I commented out this command which appears in line 3292 and 45549 of phaser.js:context[this.smoothProperty] = (this.scaleMode === PIXI.BaseTexture.SCALE_MODE.LINEAR);Now the pixels are all crisp again but I have no idea of possible side effects and I want to avoid modifying the phaser core. Any thoughts? Link to comment Share on other sites More sharing options...
rich Posted February 9, 2014 Share Posted February 9, 2014 This must be a Pixi level change (as the part you commented out is in Pixi rather than Phaser). I'll have a look at what they've done re: smoothing and make sure we can toggle it from Phaser. Link to comment Share on other sites More sharing options...
hpcodecraft Posted February 9, 2014 Author Share Posted February 9, 2014 Hi Rich, thanks for the quick reply – I'll keep those lines commented out then for now Link to comment Share on other sites More sharing options...
Recommended Posts