Change texture opacity in OpenGL
Posted
by zoul
on Stack Overflow
See other posts from Stack Overflow
or by zoul
Published on 2008-11-03T14:21:55Z
Indexed on
2010/04/01
7:43 UTC
Read the original article
Hit count: 285
Hello! This is hopefully a simple question: I have an OpenGL texture and would like to be able to change its opacity, how do I do that? The texture already has an alpha channel and blending works fine, but I want to be able to decrease the opacity of the whole texture, to fade it into the background. I have fiddled with glBlendFunc
, but with no luck – it seems that I would need something like GL_SRC_ALPHA_MINUS_CONSTANT
, which is not available. I am working on iPhone, with OpenGL ES.
© Stack Overflow or respective owner