Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
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.)
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:
 
 
* '''"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" - opaque texture
 
* "BLEND" - normal painting on top of the background, obeying alpha channels if set (?)
 
* "ALPHAKEY" - 1-bit alpha
 
* "ADD" - additive blend
 
* "MOD" - modulating blend
 
   
  +
[[Image:DISABLE.jpg]]
These values are also used by the [[API Texture SetBlendMode|Texture:SetBlendMode]]() API.
 
  +
DISABLE: Ignores alpha channel
   
  +
[[Image:BLEND.jpg]]
[[Category:Interface Customization]]
 
  +
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.
  +
  +
 
[[Category:Interface customization]]

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 DISABLE: Ignores alpha channel

BLEND BLEND: Uses alpha channel

ALPHAKEY ALPHAKEY: A 1-bit alpha which interprets alpha as either transparent or opaque.

ADD ADD: Uses alpha channel and dodges whites

MOD 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.