A mask function enumeration.

Enumeration Members

DISCARD: number

Discards elements when the respective mask value is zero.

MULTIPLY: number

Multiplies the input buffer with the mask texture.

MULTIPLY_RGB: number

Multiplies the input RGB values with the mask and keeps the original alpha.

MULTIPLY_RGB_SET_ALPHA: number

Multiplies the input RGB values with the mask and sets alpha to the mask value.