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

AsciiFilter does not work on mobile chrome

freedompix opened this issue · comments

example
https://www.pixiplayground.com/#/edit/qJK9vHZmkHQKruV6RbwtS
chrome 84.0.41
android 9

desktop test working correctly

i guess a main problem is a loosing sprite coords

After just a quick test (no diving into the shader nor the code) I can confirm that when watching the exact link (so your code and the pixi playground) it's not working on Android 11 either (both Firefox and Chrome).

Likely this is a shader issue. Here's the relevant code if some hero wants to investigate:

https://github.com/pixijs/filters/blob/main/filters/ascii/src/ascii.frag

On the playground page it does not work on my phone, but on the demo page it works fine:
https://filters.pixijs.download/main/demo/index.html?enabled=AsciiFilter

@freedompix can you confirm this?

I couldn't find issues in the shader. It is currently optimized for old devices, maybe too old and we could improve it by replacing the weird math it does to get the bit of a float by using bit operations but they are supported only starting at GLSL ES 3.0.