You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for this repo! I'm having issues where some masked sprites won't render on Android. I narrowed this down to the default PIXI.settings.PRECISION_FRAGMENT value, which is 'mediump' on Android and 'highp' on iOS.
Setting PIXI.settings.PRECISION_FRAGMENT = 'highp' fixes the problem on Android, however I don't like risking crashes on older devices. Or rather re-introducing this render bug as I did notice in the Pixi source code it automatically degrades the precision if it is not available.
I could not wrap my head around the shader code itself, however seeing the arithmetic of determining the texture and mask ids, I tried lowering the MaskedPluginFactory.MAX_TEXTURES to 2, which seems to have fixed the rendering without the shader requiring 'highp' precision.
I was wondering if this 'fix' will sustain on all devices and if it affects batching performance, @ivanpopelyshev ?
The text was updated successfully, but these errors were encountered:
Thanks for this repo! I'm having issues where some masked sprites won't render on Android. I narrowed this down to the default PIXI.settings.PRECISION_FRAGMENT value, which is 'mediump' on Android and 'highp' on iOS.
Setting PIXI.settings.PRECISION_FRAGMENT = 'highp' fixes the problem on Android, however I don't like risking crashes on older devices. Or rather re-introducing this render bug as I did notice in the Pixi source code it automatically degrades the precision if it is not available.
I could not wrap my head around the shader code itself, however seeing the arithmetic of determining the texture and mask ids, I tried lowering the MaskedPluginFactory.MAX_TEXTURES to 2, which seems to have fixed the rendering without the shader requiring 'highp' precision.
I was wondering if this 'fix' will sustain on all devices and if it affects batching performance, @ivanpopelyshev ?
The text was updated successfully, but these errors were encountered: