Skip to content

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 RGB
  • y: destination RGB
  • z: source Alpha
  • w: destination Alpha

The value stored in each component is one of the following hardcoded integer values (see LWJGL docs):

Blend ValueInteger Value
GL_ZERO0
GL_ONE1
GL_SRC_COLOR768
GL_ONE_MINUS_SRC_COLOR769
GL_SRC_ALPHA770
GL_ONE_MINUS_SRC_ALPHA771
GL_DST_ALPHA772
GL_ONE_MINUS_DST_ALPHA773
GL_DST_COLOR774
GL_ONE_MINUS_DST_COLOR775
GL_SRC_ALPHA_SATURATE776