M2/Rendering: Difference between revisions
Jump to navigation
Jump to search
(Initial commit) |
m (→Blending Modes) |
||
Line 2: | Line 2: | ||
Wrath of the Lich King and Cataclysm do not use separate alpha blending. Later expansion clients likely do use separate alpha blending. | Wrath of the Lich King and Cataclysm do not use separate alpha blending. Later expansion clients likely do use separate alpha blending. | ||
<tt>Blend_BlendAdd</tt> was added after Cataclysm. | |||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
Line 16: | Line 18: | ||
| GL_ONE | | GL_ONE | ||
| GL_ZERO | | GL_ZERO | ||
| | | GL_ONE | ||
| | | GL_ZERO | ||
|- | |- | ||
| 1 | | 1 | ||
Line 23: | Line 25: | ||
| GL_ONE | | GL_ONE | ||
| GL_ZERO | | GL_ZERO | ||
| | | GL_ONE | ||
| | | GL_ZERO | ||
|- | |- | ||
| 2 | | 2 | ||
Line 30: | Line 32: | ||
| GL_SRC_ALPHA | | GL_SRC_ALPHA | ||
| GL_ONE_MINUS_SRC_ALPHA | | GL_ONE_MINUS_SRC_ALPHA | ||
| | | GL_ONE | ||
| | | ONE_MINUS_SRC_ALPHA | ||
|- | |- | ||
| 3 | | 3 | ||
Line 37: | Line 39: | ||
| GL_SRC_ALPHA | | GL_SRC_ALPHA | ||
| GL_ONE | | GL_ONE | ||
| | | GL_ZERO | ||
| | | GL_ONE | ||
|- | |- | ||
| 4 | | 4 | ||
Line 44: | Line 46: | ||
| GL_DST_COLOR | | GL_DST_COLOR | ||
| GL_ZERO | | GL_ZERO | ||
| | | ? | ||
| | | GL_ZERO | ||
|- | |- | ||
| 5 | | 5 |
Revision as of 18:01, 27 November 2016
Blending Modes
Wrath of the Lich King and Cataclysm do not use separate alpha blending. Later expansion clients likely do use separate alpha blending.
Blend_BlendAdd was added after Cataclysm.
Mode | Src Color | Dest Color | Src Alpha | Dest Alpha | |
---|---|---|---|---|---|
0 | Blend_Opaque | GL_ONE | GL_ZERO | GL_ONE | GL_ZERO |
1 | Blend_AlphaKey | GL_ONE | GL_ZERO | GL_ONE | GL_ZERO |
2 | Blend_Alpha | GL_SRC_ALPHA | GL_ONE_MINUS_SRC_ALPHA | GL_ONE | ONE_MINUS_SRC_ALPHA |
3 | Blend_Add | GL_SRC_ALPHA | GL_ONE | GL_ZERO | GL_ONE |
4 | Blend_Mod | GL_DST_COLOR | GL_ZERO | ? | 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 | - | - |