- Add support for loading lightmap data generated by ZDRay

- Initialize lightmap texture in the hardware abstract parts of the engine
This commit is contained in:
nashmuhandes 2021-09-24 14:51:48 +08:00
commit 39481f0d07
8 changed files with 221 additions and 0 deletions

View file

@ -81,6 +81,7 @@ static int GetMapIndex(const char *mapname, int lastindex, const char *lumpname,
{"REJECT", false},
{"BLOCKMAP", false},
{"BEHAVIOR", false},
{"LIGHTMAP", false },
//{"SCRIPTS", false},
};
@ -235,6 +236,10 @@ MapData *P_OpenMapData(const char * mapname, bool justcheck)
index = ML_BEHAVIOR;
map->HasBehavior = true;
}
else if (!stricmp(lumpname, "LIGHTMAP"))
{
index = ML_LIGHTMAP;
}
else if (!stricmp(lumpname, "ENDMAP"))
{
break;
@ -312,6 +317,10 @@ MapData *P_OpenMapData(const char * mapname, bool justcheck)
index = ML_BEHAVIOR;
map->HasBehavior = true;
}
else if (!strnicmp(lumpname, "LIGHTMAP", 8))
{
index = ML_LIGHTMAP;
}
else if (!strnicmp(lumpname, "ENDMAP",8))
{
return map;