src/enums/MaskFunction.js
/**
* A mask function enumeration.
*
* @type {Object}
* @property {Number} DISCARD - Discards elements when the respective mask value is zero.
* @property {Number} MULTIPLY - Multiplies the input buffer with the mask texture.
* @property {Number} MULTIPLY_RGB_SET_ALPHA - Multiplies the input RGB values with the mask and sets alpha to the mask value.
* @property {Number} MULTIPLY_RGB - Multiplies the input RGB values with the mask and keeps the original alpha.
*/
export const MaskFunction = {
DISCARD: 0,
MULTIPLY: 1,
MULTIPLY_RGB_SET_ALPHA: 2,
MULTIPLY_RGB: 3
};