From what I’ve seen, the GL_ALPHA8 internal pixel format has been removed from the OpenGL core specification in OpenGL 3.1. It seems that there are no more pixel formats with an alpha channel but no RGB channels. Does that mean that the only alternative is to create an GL_RGBA8 texture and set the RGB components to 255, therefore wasting 75% of its memory?
From what I’ve seen, the GL_ALPHA8 internal pixel format has been removed from the
Share
Simply use the
GL_R8format. If changing your textures to swizzle properly is a concern, you can set up a swizzle mask to do it at fetch time. For instance: