loover Posted March 12, 2017 Share Posted March 12, 2017 Hi. How to enable/add a Bicubic scale filtering? Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted March 13, 2017 Share Posted March 13, 2017 If your texture has pow2 dimensions, it'll be enabled by default. https://github.com/pixijs/pixi.js/blob/dev/src/core/renderers/webgl/TextureManager.js#L139 https://github.com/pixijs/pixi.js/blob/dev/src/core/textures/BaseTexture.js#L168 https://github.com/pixijs/pixi.js/blob/dev/src/core/settings.js#L19 Quote Link to comment Share on other sites More sharing options...
loover Posted March 13, 2017 Author Share Posted March 13, 2017 I use Phaser (which use PIXI for rendering), but it''s not works. Looks like Linear or Nearest (images below is scaled up for clarity): In Photoshop: Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted March 13, 2017 Share Posted March 13, 2017 Phaser uses pixi-v2 and Im not sure if it was enabled by default. Something like "texture.baseTexture.mipmap=true" before it renders first time should work. Quote Link to comment Share on other sites More sharing options...
loover Posted March 13, 2017 Author Share Posted March 13, 2017 Thanks, it works. 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.