I'm having a problem with how my button icons are rendered on iPhone devices via CocoonJS (tested on iPhone 4 and iPhone 5). It's most likely a CocoonJS bug as the buttons are rendered normally when opening the HTML exported game in Safari.
This is a comparison with Android exported with CocoonJS:
<img src="https://dl.dropboxusercontent.com/u/35440583/c2forums/BotBarOuteredge/BotBarOuteredge.png" border="0" />
I was wondering if anyone experienced anything similar and know how to prevent it.
I will email ludei about this as well, but it'll probably be weeks before anything could be done on their part.
It's a CocoonJS bug. Looks like they don't handle premultiplied alpha properly. Report it to Ludei.
Apparently it's caused by the Brightness WebGL effect, using the AdjustHSL effect for instance does not cause the bug.
Just wanted to add that the same thing happens when using the new Ejecta exporter.
The odd thing is that when I used Ejecta back before the official exporter (by using the HTML exporter) the images with Brightness rendered normally. Could it be caused by the exporters?
Unlikely. Did you say this is *only* caused by using WebGL shaders?
Develop games in your browser. Powerful, performant & highly capable.
Yes, but not all shaders. AdjustHSL for instance is fine.
Here's a example capx https://dl.dropboxusercontent.com/u/354 ... fects.capx
Ashley Simply by having the shader added, even without changing the effect parameters, causes the bug.
Post it to the bugs forum following the guidelines and with a list of all affected shaders for further investigation.