Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filters not rendering on Android or with multiTexture: true #691

Open
drfrankius opened this issue Apr 21, 2021 · 0 comments
Open

Filters not rendering on Android or with multiTexture: true #691

drfrankius opened this issue Apr 21, 2021 · 0 comments
Labels

Comments

@drfrankius
Copy link
Contributor

drfrankius commented Apr 21, 2021

Phaser versions: 2.14.0 +

On Android using a filter that uses a Sprite as a input seems to make the graphic vanish. I am not sure when this issue started but I can confirm from 2.14.0 + it occurs. I found this issue reported in the past here as well #554 . Looking at the example at https://phaser.io/examples/v2/filters/blur the blur filter renders, but this example page seems to always use 2.6.2 regardless of what you select as the Phaser version (checked the console). Looking at https://samme.github.io/phaser-examples-mirror/filters/blur.html which renders with 2.17.0 nothing renders on Android. The same is true with all the filters that use sprites as a input (pixelate, gray, basic). Other filters that do not modify a PIXI/Phaser sprites appearance seem to work (fireball, rainbow bars, etc.). On desktop and iOS the filters seem to render correctly.

Phaser versions: 2.15.0 - 2.17.0

Additionally on desktop applying a filter on a sprite corrupts graphics in a batch when multiTexture: true is enabled. The filter I am using is a ColorMatrix filter I sourced from the PIXI 2.0 filters. The filter renders correctly with multiTexture: false . I have attached some screen shots showing the issue with multiTexture batching enabled.

Screenshot 2021-04-21 080908
Screenshot 2021-04-21 093547

@samme samme added the bug label Apr 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants