pixijs / filters

Collection of community-authored custom display filters for PixiJS

Home Page:https://pixijs.io/filters/docs/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Filters don't work properly in v5

Dai696 opened this issue · comments

commented

I believe the defaults for how filters work changed since v5
This only happens when you use a custom texture from a baseTexture (to lets say cut out a part of a texture for a sprite.

You can see the default behavior here in v4.8.5

https://www.pixiplayground.com/#/edit/NQfr8fq42KDSDJX2ITubw

and in v5.0.0-rc

https://www.pixiplayground.com/#/edit/kAH5ezneCrbQPsr6MVzt0

Default padding is now 0. Old one was 4. Set filte.padding=4

It will be different a bit, one extra pixel at bottom because different algorithm for rounding rects.

commented

Okay, we should let people know when switching to v5 that its different.

I propose a v4 to v5 gotcha guide.

Thanks @ivanpopelyshev