8

Using translucent png's as textures and fading them OpenGL ES 2.0

view full story
linux-howto

http://stackoverflow.com – I have some .png files that I'm using as textures for my 2d game quad sprites. Some of these already have partially transparent pixels in them and I need to be able to display them correctly and fade them in/out. Initially, I was drawing them with the following blending mode: GLES20.glBlendFunc(GLES20.GL_SRC_ALPHA, GLES20.GL_ONE_MINUS_SRC_ALPHA); This works fine for the textures that are solid to begin with and I can use any value between 1.0f and 0.0f to introduce transparency. So far so good, but when I try to use png's that already have transparency in them, they won't display correct (HowTos)