JeZxLee Posted July 20, 2017 Share Posted July 20, 2017 Hi. How would I disable Pixi sprite smoothing? Thanks! JeZxLee Quote Link to comment Share on other sites More sharing options...
jonforum Posted July 20, 2017 Share Posted July 20, 2017 hi friend /** * The scale modes that are supported by pixi. * * The {@link PIXI.settings.SCALE_MODE} scale mode affects the default scaling mode of future operations. * It can be re-assigned to either LINEAR or NEAREST, depending upon suitability. * * @static * @constant * @memberof PIXI * @name SCALE_MODES * @type {object} * @property {number} LINEAR Smooth scaling * @property {number} NEAREST Pixelating scaling */ var SCALE_MODES = exports.SCALE_MODES = { LINEAR: 0, NEAREST: 1 }; /** so try this at boot game, or in game befor load texture and sprite PIXI.settings.SCALE_MODE = 1; Quote Link to comment Share on other sites More sharing options...
JeZxLee Posted July 20, 2017 Author Share Posted July 20, 2017 That worked, thanks! JeZxLee 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.