Alpha blending experimentation.
Source blending factor (Percentage of the object's color to render.) |
Destination blending factor (Percentage of color already in the color buffer) |
gl.ZERO gl.ONE gl.SRC_COLOR gl.ONE_MINUS_SRC_COLOR gl.DST_COLOR gl.ONE_MINUS_DST_COLOR gl.SRC_ALPHA gl.ONE_MINUS_SRC_ALPHA gl.DST_ALPHA gl.ONE_MINUS_DST_ALPHA gl.CONSTANT_COLOR gl.ONE_MINUS_CONSTANT_COLOR gl.CONSTANT_ALPHA gl.ONE_MINUS_CONSTANT_ALPHA gl.SRC_ALPHA_SATURATE |
gl.ZERO gl.ONE gl.SRC_COLOR gl.ONE_MINUS_SRC_COLOR gl.DST_COLOR gl.ONE_MINUS_DST_COLOR gl.SRC_ALPHA gl.ONE_MINUS_SRC_ALPHA gl.DST_ALPHA gl.ONE_MINUS_DST_ALPHA gl.CONSTANT_COLOR gl.ONE_MINUS_CONSTANT_COLOR gl.CONSTANT_ALPHA gl.ONE_MINUS_CONSTANT_ALPHA |
gl.blendFunc(gl.SRC_ALPHA, gl.ONE_MINUS_SRC_ALPHA); |