mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Expose blendmodes to UDMF
This commit is contained in:
parent
641d3c89b9
commit
974c099e8a
3 changed files with 21 additions and 5 deletions
|
|
@ -139,10 +139,10 @@ mapformat_udmf
|
||||||
}
|
}
|
||||||
|
|
||||||
// LINEDEF RENDERSTYLES
|
// LINEDEF RENDERSTYLES
|
||||||
/*linedefrenderstyles
|
linedefrenderstyles
|
||||||
{
|
{
|
||||||
include("Kart2_misc.cfg", "linedefrenderstyles");
|
include("Kart2_misc.cfg", "linedefrenderstyles");
|
||||||
}*/
|
}
|
||||||
|
|
||||||
// THING FLAGS
|
// THING FLAGS
|
||||||
thingflags
|
thingflags
|
||||||
|
|
|
||||||
|
|
@ -67,11 +67,14 @@ linedefactivations_udmf
|
||||||
nonet = "No Netgame";
|
nonet = "No Netgame";
|
||||||
}
|
}
|
||||||
|
|
||||||
/*linedefrenderstyles
|
linedefrenderstyles
|
||||||
{
|
{
|
||||||
translucent = "Translucent";
|
translucent = "Translucent";
|
||||||
fog = "Fog";
|
add = "Add";
|
||||||
}*/
|
subtract = "Subtract";
|
||||||
|
reversesubtract = "Reverse subtract";
|
||||||
|
modulate = "Modulate";
|
||||||
|
}
|
||||||
|
|
||||||
sectorflags
|
sectorflags
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1526,6 +1526,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…
Add table
Reference in a new issue