Fibby19531@legacy41540267 (talk | contribs) m (XML/Texture/alphaMode moved to UITYPE AlphaMode: "ALPHAMODE" is a simpleType defined in UI.xsd, and as such should be named consistently with existing naming convention for UI objects.) |
Charibot@legacy41530750 (talk | contribs) m (catfix, Replaced: {{wowapitype}} → {{wowapitype}}<br>) |
||
(4 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{wowapitype}}<br> |
||
− | AlphaMode is an attribute of textures. Nearly all alphaModes used in the default UI are "ADD." |
||
+ | ''AlphaMode'' can take following values: |
||
− | From a post by Slouken on 1/19/06, the alphaModes and their meaning: |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
+ | == Examples == |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
+ | [[Image:DISABLE.jpg]] |
||
− | These values are also used by the [[API Texture SetBlendMode|Texture:SetBlendMode]]() API. |
||
+ | DISABLE: Ignores alpha channel |
||
+ | [[Image:BLEND.jpg]] |
||
⚫ | |||
+ | BLEND: Uses alpha channel |
||
+ | |||
+ | [[Image:ALPHAKEY.jpg]] |
||
+ | ALPHAKEY: A 1-bit alpha which interprets alpha as either transparent or opaque. |
||
+ | |||
+ | [[Image:ADD.jpg]] |
||
+ | ADD: Uses alpha channel and dodges whites |
||
+ | |||
+ | [[Image:MOD.jpg]] |
||
+ | MOD: Ignores alpha channel and multiplies the image. |
||
+ | |||
+ | == Notes == |
||
+ | * <tt>alphaMode</tt> attribute of [[UIOBJECT Texture|Texture widget]] has type ''AlphaMode''. |
||
+ | * As of patch 2.2.0, Blizzard uses only '''BLEND''' and '''ADD''' ''AlphaMode''s in their code. |
||
+ | |||
+ | |||
⚫ |
Revision as of 00:55, 15 July 2008
AlphaMode can take following values:
- "DISABLE" - opaque texture
- "BLEND" - normal painting on top of the background, obeying alpha channels if present in the image (uses alpha)
- "ALPHAKEY" - one-bit alpha
- "ADD" - additive blend
- "MOD" - modulating blend
Examples
DISABLE: Ignores alpha channel
ALPHAKEY: A 1-bit alpha which interprets alpha as either transparent or opaque.
ADD: Uses alpha channel and dodges whites
MOD: Ignores alpha channel and multiplies the image.
Notes
- alphaMode attribute of Texture widget has type AlphaMode.
- As of patch 2.2.0, Blizzard uses only BLEND and ADD AlphaModes in their code.