I am new on OpenGl and what I want to achieve is to give a texture the alpha from 1.0 to 0.0
I have been searching and only found "how to load alpha in images" but I cant find how to apply alpha to an object
I has been tried with:
gl.glEnable(GL10.GL_ALPHA_TEST); alpha += 0.002f; if(alpha > 1) alpha = 1f; gl.glAlphaFunc(GL10.GL_EQUAL, alpha);
But it doesn't work.
How I can give alpha value (to make the effect of fade) to an object/texture?