target | Sets target mode |
mode | Blending mode |
Target | Mode | |
Source | NJD_SOURCE_COLOR | NJD_COLOR_BLENDING_SRCALPHA |
Destination | NJD_DESTINATION_COLOR | NJD_COLOR_BLENDING_INVSRCALPHA |
Target to be setup is as follows.
NJD_SOURCE_COLOR | Source color |
NJD_DESTINATION_COLOR | Destination color |
Target mode should be set as follows.
NJD_COLOR_BLENDING_BOTHINVALPHA | Disregarding target destination, blend by crossing (1-As, 1-As, 1-As, 1-As) with the source color and (As, As, As, As) with the destination color |
NJD_COLOR_BLENDING_BOTHSRCALPHA | Disregarding target destination, blend by crossing (As, As, As, As) with the source color and (1-As, 1-As, 1-As, 1-As) with the destination color |
NJD_COLOR_BLENDING_DESTALPHA | Blend by crossing (Ad, Ad, Ad, Ad) with the specified target |
NJD_COLOR_BLENDING_DESTCOLOR | Use the destination color for the specified target |
NJD_COLOR_BLENDING_INVDESTALPHA | Blend by crossing (1-Ad, 1-Ad, 1-Ad, 1-Ad) with the specified target |
NJD_COLOR_BLENDING_INVDESTCOLOR | Use (1-Ad, 1-Rd, 1-Gd, 1-Bd) for the specified target |
NJD_COLOR_BLENDING_INVSRCALPHA | Blend by crossing (1-As, 1-As, 1-As, 1-As) with the specified target |
NJD_COLOR_BLENDING_INVSRCCOLOR | Use (1-As, 1-Rs, 1-Gs, 1-Bs) for the specified target |
NJD_COLOR_BLENDING_SRCALPHA | Blend by crossing (As, As, As, As) with the specified target |
NJD_COLOR_BLENDING_SRCCOLOR | Use the source color for the specified target |
NJD_COLOR_BLENDING_ONE | Blend by crossing (1, 1, 1, 1) with the specified target |
NJD_COLOR_BLENDING_ZERO | Blend by crossing (0, 0, 0, 0) with the specified target |
s, d in the mode description provided above means source color and destination color; for example, as means source color alpha.