blendFunc
uniform ivec4 blendFunc;
The alpha blending function multipliers for the current program, as described in blend.<program>
. The components of the vector store the following:
x
: source RGBy
: destination RGBz
: source Alphaw
: destination Alpha
The value stored in each component is one of the following hardcoded integer values (see LWJGL docs):
Blend Value | Integer Value |
---|---|
GL_ZERO | 0 |
GL_ONE | 1 |
GL_SRC_COLOR | 768 |
GL_ONE_MINUS_SRC_COLOR | 769 |
GL_SRC_ALPHA | 770 |
GL_ONE_MINUS_SRC_ALPHA | 771 |
GL_DST_ALPHA | 772 |
GL_ONE_MINUS_DST_ALPHA | 773 |
GL_DST_COLOR | 774 |
GL_ONE_MINUS_DST_COLOR | 775 |
GL_SRC_ALPHA_SATURATE | 776 |