OpenGL (libgdx) - blending alpha map -
i trying blend white texture varying alpha values colored background. expecting result retain colors background, , have alpha values replaced ones blended texture. so, background use: gdx.gl.glenable(gl20.gl_blend); gdx.gl.glblendequationseparate(gl20.gl_func_add, gl20.gl_func_add); gdx.gl.glblendfuncseparate(gl20.gl_one, gl20.gl_zero, gl20.gl_one, gl20.gl_zero); i expect background triangles mesh override destination, both color , alpha. question 1 - why blendfunc parameters, alpha value being ignored? if set blendfunc gl_one, gl_one, gl_zero, gl_zero filled mesh rendered proper alpha level - both source , dest alpha supposed multiplied 0 - why work? ==== now blend alpha map use: gdx.gl.glblendequationseparate(gl20.gl_func_add, gl20.gl_func_add); gdx.gl.glblendfuncseparate(gl20.gl_zero, gl20.gl_one, gl20.gl_one, gl20.gl_zero); question 2 - supposed keep destination color , replace alpha. however, when render texture blendfunc params, no change output @ all... i...