masking blend modes

This commit is contained in:
Glenn Maynard
2007-02-25 00:32:39 +00:00
parent 512021c127
commit c072f6e98b
3 changed files with 36 additions and 0 deletions
+26
View File
@@ -74,7 +74,33 @@ static const char *BlendModeNames[] =
{
"Normal",
"Add",
/*
* Copy the source directly to the destination. Alpha is not premultiplied.
*
* Co = Cs
* Ao = As
*/
"CopySrc",
/*
* Leave the color alone, and apply the source alpha on top of the existing alpha.
* Transparent areas in the source become transparent in the destination.
*
* Be sure to disable alpha test with this blend mode.
*
* Co = Cd
* Ao = Ad*As
*/
"AlphaMask",
/*
* Leave the color alone, and apply the source alpha on top of the existing alpha.
* Transparent areas in the source become transparent in the destination.
* Co = Cd
* Ao = Ad*(1-As)
*/
"AlphaKnockOut",
"WeightedMultiply",
"InvertDest",
"NoEffect"