mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-21 20:11:12 +00:00
Expose blendmodes to UDMF
This commit is contained in:
parent
f431b20911
commit
ac3dd146c7
3 changed files with 21 additions and 5 deletions
|
@ -264,10 +264,10 @@ mapformat_udmf
|
|||
}
|
||||
|
||||
// LINEDEF RENDERSTYLES
|
||||
/*linedefrenderstyles
|
||||
linedefrenderstyles
|
||||
{
|
||||
include("SRB222_misc.cfg", "linedefrenderstyles");
|
||||
}*/
|
||||
}
|
||||
|
||||
// THING FLAGS
|
||||
thingflags
|
||||
|
|
|
@ -63,11 +63,14 @@ linedefflags_udmf
|
|||
transfer = "Transfer Line";
|
||||
}
|
||||
|
||||
/*linedefrenderstyles
|
||||
linedefrenderstyles
|
||||
{
|
||||
translucent = "Translucent";
|
||||
fog = "Fog";
|
||||
}*/
|
||||
add = "Add";
|
||||
subtract = "Subtract";
|
||||
reversesubtract = "Reverse subtract";
|
||||
modulate = "Modulate";
|
||||
}
|
||||
|
||||
sectorflags
|
||||
{
|
||||
|
|
|
@ -1701,6 +1701,19 @@ static void ParseTextmapLinedefParameter(UINT32 i, char *param, char *val)
|
|||
lines[i].sidenum[1] = atol(val);
|
||||
else if (fastcmp(param, "alpha"))
|
||||
lines[i].alpha = FLOAT_TO_FIXED(atof(val));
|
||||
else if (fastcmp(param, "blendmode") || fastcmp(param, "renderstyle"))
|
||||
{
|
||||
if (fastcmp(val, "translucent"))
|
||||
lines[i].blendmode = AST_COPY;
|
||||
else if (fastcmp(val, "add"))
|
||||
lines[i].blendmode = AST_ADD;
|
||||
else if (fastcmp(val, "subtract"))
|
||||
lines[i].blendmode = AST_SUBTRACT;
|
||||
else if (fastcmp(val, "reversesubtract"))
|
||||
lines[i].blendmode = AST_REVERSESUBTRACT;
|
||||
else if (fastcmp(val, "modulate"))
|
||||
lines[i].blendmode = AST_MODULATE;
|
||||
}
|
||||
else if (fastcmp(param, "executordelay"))
|
||||
lines[i].executordelay = atol(val);
|
||||
|
||||
|
|
Loading…
Reference in a new issue