Determines how two pixels' values are combined.
Properties:
Name | Type | Description |
---|---|---|
ADD |
Number | Pixel values are added componentwise. This is used in additive blending for translucency. |
SUBTRACT |
Number | Pixel values are subtracted componentwise (source - destination). This is used in alpha blending for translucency. |
REVERSE_SUBTRACT |
Number | Pixel values are subtracted componentwise (destination - source). |
MIN |
Number | Pixel values are given to the minimum function (min(source, destination)). This equation operates on each pixel color component. |
MAX |
Number | Pixel values are given to the maximum function (max(source, destination)). This equation operates on each pixel color component. |
Members
Pixel values are added componentwise. This is used in additive blending for translucency.
-
Default Value:
WebGLConstants.FUNC_ADD
Pixel values are given to the maximum function (max(source, destination)).
This equation operates on each pixel color component.
-
Default Value:
WebGLConstants.MAX
Pixel values are given to the minimum function (min(source, destination)).
This equation operates on each pixel color component.
-
Default Value:
WebGLConstants.MIN
Pixel values are subtracted componentwise (destination - source).
-
Default Value:
WebGLConstants.FUNC_REVERSE_SUBTRACT
Pixel values are subtracted componentwise (source - destination). This is used in alpha blending for translucency.
-
Default Value:
WebGLConstants.FUNC_SUBTRACT