For memory-efficient realtime embedded graphics I have traditionally used DDS images encoded using GL_LUMINANCE
when I need lossless grayscale images (or GL_LUMINANCE_ALPHA
when there is alpha needed). However, I have just discovered that these file formats were deprecated in OpenGL 3 and removed from 3.1.
Is there a replacement image format for lossless grayscale-only data that is 8 bits per pixel or less (or 16bpp when alpha is involved)?
GL_RED
should always be interpreted by a shader to replicate the values across RGB, andRG
should always use the green/second channel for alpha? – Allot