Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


BlendMode

Blend mode for controlling the blending.
Read time 1 minuteLast updated 4 days ago

Definition

public enum BlendMode

Remarks

The blend mode is set separately for source and destination, and it controls the blend factor of each component going into the blend equation. It is also possible to set the blend mode for color and alpha components separately. Note: the blend modes are ignored if logical blend operations or advanced OpenGL blend operations are in use.

Fields

Value

Description

DstAlphaBlend factor is (Ad, Ad, Ad, Ad).
DstColorBlend factor is (Rd, Gd, Bd, Ad).
OneBlend factor is (1, 1, 1, 1).
OneMinusDstAlphaBlend factor is (1 - Ad, 1 - Ad, 1 - Ad, 1 - Ad).
OneMinusDstColorBlend factor is (1 - Rd, 1 - Gd, 1 - Bd, 1 - Ad).
OneMinusSrcAlphaBlend factor is (1 - As, 1 - As, 1 - As, 1 - As).
OneMinusSrcColorBlend factor is (1 - Rs, 1 - Gs, 1 - Bs, 1 - As).
SrcAlphaBlend factor is (As, As, As, As).
SrcAlphaSaturateBlend factor is (f, f, f, 1); where f = min(As, 1 - Ad).
SrcColorBlend factor is (Rs, Gs, Bs, As).
ZeroBlend factor is (0, 0, 0, 0).