October 2018
Intermediate to advanced
500 pages
12h 40m
English
The following table summarizes the WebGL functions that are relevant to performing alpha-blending operations:
| WebGL function | Description |
| gl.enable|disable(gl.BLEND) | Enable/disable blending. |
| gl.blendFunc(sW, dW) |
Specify pixel arithmetic. Accepted values for sW and dW are as follows:
In addition, sW can also be SRC_ALPHA_SATURATE. |
| gl.blendFuncSeparate(sW_rgb, dW_rgb, sW_a, dW_a) |
Specify pixel arithmetic for RGB and alpha components separately. |
| gl.blendEquation(mode) |
Specify the equation used for ... |