- Added a new patch style: CopyNewAlpha. This works just like Copy except it multiplies each

pixel's alpha channel by the specified Alpha property.

SVN r3637 (trunk)
This commit is contained in:
Randy Heit 2012-05-11 02:05:24 +00:00
commit b9c3f8db4f
3 changed files with 41 additions and 99 deletions

View file

@ -1180,7 +1180,7 @@ void FMultiPatchTexture::ParsePatch(FScanner &sc, TexPart & part, bool silent, i
}
else if (sc.Compare("style"))
{
static const char *styles[] = {"copy", "translucent", "add", "subtract", "reversesubtract", "modulate", "copyalpha", NULL };
static const char *styles[] = {"copy", "translucent", "add", "subtract", "reversesubtract", "modulate", "copyalpha", "copynewalpha", NULL };
sc.MustGetString();
part.op = sc.MustMatchString(styles);
bComplex |= (part.op != OP_COPY);