ETC1 format with alpha .pkm files

Hi all,

I’ve got a bunch of .pkm textures that I have created in TexturePacker that use the ETC1 format, targetting the Android platform.

It is absolutely essential that I have ETC1 textures due to the performance they provide over .png. I have very large scenes. I know it is possible to include the alpha channel of a texture in supplement with the ETC1 texture. But I’m not sure what the available methods are for doing this in Cocos2d-X. I know of one which uses shaders, I am pretty comfortable with shaders but I’m not sure of the exact steps I need to take.

Is there any other methods to achieve this in Cocos2D-x? If someone could share some source code that would be brilliant. Thanks for reading.

As with most questions I ask on this forum I end up answering them myself. Since the solution is quite lengthy if anyone really needs to achieve this then PM me directly and I will go through it with you.