For example,the texture is in rgba mode but what I need just alpha channel.
So I want to remove the data in rbg channels and just store the alpha data.
And then I can save the texture size to 1/3.
Is there any way to achieve this goal?
Thanks!
For example,the texture is in rgba mode but what I need just alpha channel.
So I want to remove the data in rbg channels and just store the alpha data.
And then I can save the texture size to 1/3.
Is there any way to achieve this goal?
Thanks!
Hi,
Yes, it is possible. If you are using PVRTexTool just re-compress the texture with an alpha-only format (Name: A 8). Alternatively you can do it programmatically, removing the three channels from the original data (converting from 32bit to 8bit). Load it to OpenGL ES with the GL_ALPHA flag.
Regards.
Carlos.
Am I right?
./PVRTexToolCLI -f a8 -i example.png -o output.pvr
Yes, that is correct.The format a8 will carry only the alpha channel in your png.
Regards.
Carlos.
If you can modify your shaders, you can achieve even higher space savings if you
Notes:
© Imagination Technologies Limited. All rights reserved.
Privacy Policy – Terms & Conditions – Trademarks – Cookies