Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
macguffin

PIXI plugin tip

Recommended Posts

yeah think you're right I must have been still picking up my adapted pixiPlugin file with this line in it:

 

Sorry for all the confusion

 

if (v.resolution) {
    filter.resolution = v.resolution;

} else {
    filter.resolution = PIXI.settings.FILTER_RESOLUTION;
}
Link to comment
Share on other sites

Hm, I would have expected that Pixi would apply the PIXI.settings.FILTER_RESOLUTION by default to any filters when they're created. 

 

Do you guys see any benefit to having a PixiPlugin.defaultFilterResolution value that it'd use instead of PIXI.settings.FILTER_RESOLUTION? I guess that'd eliminate a dependency on PIXI.settings.FILTER_RESOLUTION which could be a good thing. 

Link to comment
Share on other sites

just asked what this is for as I agree it might be a bad idea to rely on it if it's actually meant for something else. 

Also if it did set a default resolution you wouldn't need to make any changes globally to your stuff.

 

https://github.com/pixijs/pixi.js/issues/4392

 

 

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×