4.16.3.2 Parsing Mixmode
The iSyntaxService::ParseMixmode()
function parses a ‘mixmode’
node which is used for defining transparency or how the source (usually
a texture) is blended with the destination (usually a screen buffer). For
more information about mixmodes check Mixmodes and Blending.
The following children are supported for mixmode:
- ‘copy’
Copy blending. This mode is usually default.
- ‘multiply’
Multiplicative blending.
- ‘multiply2’
Double multiplicative blending. Often used for lighting.
- ‘add’
Additive blending. Used for transparency effects that don't require
back to front sorting.
- ‘alpha’
Alpha blending. Expects and additional parameter between 0 and 1 that indicates
the alpha value. This kind of blending requires back to front sorting to look
right.
- ‘premultalpha’
Premultiplied alpha blending.
- ‘destalphaadd’
@@TODO
- ‘srcalphaadd’
@@TODO
- ‘transparent’
Fully transparent but still affect Z-buffer.
- ‘mesh’
@@TODO
- ‘alphatest’
One of: ‘auto’, ‘enable’, or ‘disable’. @@TODO
- ‘blendop’
This child expects two attributes: ‘src’ and ‘dest’. Both can have one of the following as a value: ‘dstalpha’, ‘dstalpha_inv’,
‘dstcolor’, ‘dstcolor_inv’, ‘one’, ‘srcalpha’,
‘srcalpha_inv’, ‘scrcolor’, ‘srccolor_inv’, or ‘zero’.
@@TODO
This document was generated using texi2html 1.76.