BlendAlphaMode
EditControls whether premultiplied alpha is enabled.
Value | Description |
alphamultiply | Color channel values are multiplied by the alpha channel during blending. |
premultiplied | Color channel values are not multiplied by the alpha. Instead, it's assumed that the colors have already been multiplied by the alpha. This should be used if the pixels being drawn have already been blended, or "pre-multiplied". |
Notes
The premultiplied mode should be used if pixels being drawn have already been blended, or "pre-multiplied", by the alpha channel. This happens when rendering to a texture that contains pixels with transparent alpha values, since the stored color values have already been faded by alpha and don't need to be faded a second time with the alphamultiply blend mode.