M2/Rendering

From wowdev
Revision as of 17:55, 27 November 2016 by Fallenoak (talk | contribs) (Initial commit)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Blending Modes

Wrath of the Lich King and Cataclysm do not use separate alpha blending. Later expansion clients likely do use separate alpha blending.

Mode Src Color Dest Color Src Alpha Dest Alpha
0 Blend_Opaque GL_ONE GL_ZERO - -
1 Blend_AlphaKey GL_ONE GL_ZERO - -
2 Blend_Alpha GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA - -
3 Blend_Add GL_SRC_ALPHA GL_ONE - -
4 Blend_Mod GL_DST_COLOR GL_ZERO - -
5 Blend_Mod2x GL_DST_COLOR GL_SRC_COLOR - -
6 Blend_ModAdd GL_DST_COLOR GL_ONE - -
7 Blend_InvSrcAlphaAdd GL_ONE_MINUS_SRC_ALPHA GL_ONE - -
8 Blend_InvSrcAlphaOpaque GL_ONE_MINUS_SRC_ALPHA GL_ZERO - -
9 Blend_SrcAlphaOpaque GL_SRC_ALPHA GL_ZERO - -
10 Blend_NoAlphaAdd GL_ONE GL_ONE - -
11 Blend_ConstantAlpha GL_CONSTANT_ALPHA GL_ONE_MINUS_CONSTANT_ALPHA - -
12 Blend_Screen GL_ONE_MINUS_DST_COLOR GL_ONE - -
13 Blend_BlendAdd GL_ONE GL_ONE_MINUS_SRC_ALPHA - -