GL_ALPHA/GL_LUMINANCE/GL_INTENSITY之差别

来源:互联网 发布:大淘客cms建站要钱吗 编辑:程序博客网 时间:2024/06/11 16:21

GL_ALPHA/GL_LUMINANCE/GL_INTENSITY之差别

The difference between the three single-component texture formats, GL_ALPHA, GL_LUMINANCE and GL_INTENSITY, is in the way the four-component RGBA color vector is generated. If the value for a given texel is X, then the RGBA color vector generated is:

    * GL_ALPHA: RGBA = (0, 0, 0, X)

    * GL_LUMINANCE: RGBA = (X, X, X, 1)

    * GL_INTENSITY: RGBA = (X, X, X, X)