How to render a texture with alpha?
I have a texture, and need to render it with different alpha values at different locations. Any way to do so? (My texture is GL_RGBA)
If not possible to change alpha value on the fly, I have to create different textures for different alpha levels?
Your texture is GL_RGBA so it has a different alpha value for each texel.
If you want to change the alpha value used for render, I can think of the following methods:
glColor4fto change the alpha value of the vertices. It will multiply the texture values. You may need to useglEnable(GL_COLOR_MATERIAL)and/orglColorMaterial().glActiveTexture()and friends).