mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-25 13:51:43 +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
|
// LINEDEF RENDERSTYLES
|
||||||
/*linedefrenderstyles
|
linedefrenderstyles
|
||||||
{
|
{
|
||||||
include("SRB222_misc.cfg", "linedefrenderstyles");
|
include("SRB222_misc.cfg", "linedefrenderstyles");
|
||||||
}*/
|
}
|
||||||
|
|
||||||
// THING FLAGS
|
// THING FLAGS
|
||||||
thingflags
|
thingflags
|
||||||
|
|
|
@ -63,11 +63,14 @@ linedefflags_udmf
|
||||||
transfer = "Transfer Line";
|
transfer = "Transfer Line";
|
||||||
}
|
}
|
||||||
|
|
||||||
/*linedefrenderstyles
|
linedefrenderstyles
|
||||||
{
|
{
|
||||||
translucent = "Translucent";
|
translucent = "Translucent";
|
||||||
fog = "Fog";
|
add = "Add";
|
||||||
}*/
|
subtract = "Subtract";
|
||||||
|
reversesubtract = "Reverse subtract";
|
||||||
|
modulate = "Modulate";
|
||||||
|
}
|
||||||
|
|
||||||
sectorflags
|
sectorflags
|
||||||
{
|
{
|
||||||
|
|
|
@ -1701,6 +1701,19 @@ static void ParseTextmapLinedefParameter(UINT32 i, char *param, char *val)
|
||||||
lines[i].sidenum[1] = atol(val);
|
lines[i].sidenum[1] = atol(val);
|
||||||
else if (fastcmp(param, "alpha"))
|
else if (fastcmp(param, "alpha"))
|
||||||
lines[i].alpha = FLOAT_TO_FIXED(atof(val));
|
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"))
|
else if (fastcmp(param, "executordelay"))
|
||||||
lines[i].executordelay = atol(val);
|
lines[i].executordelay = atol(val);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue