I have a colored texture work as a menu button. Sometimes I want to gray it out when it's disabled. How to do it without creating a new grayscaled texture? Can glBlendFunc do this for me? Thanks in advance.
A:
To have a gray scale texture, you need to create such texture. For internal format set either luminance or intensity. See here for details : http://www.opengl.org/sdk/docs/man/xhtml/glTexImage2D.xml
VJo
2010-10-25 10:16:09
actually I'm trying to make an texture change from grayscaled to colorized. I'm still looking for the best solution. Thanks for your information anyway.
Cuper Hector
2010-10-29 03:04:54