- 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:
parent
3ef60a40a5
commit
39481f0d07
8 changed files with 221 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue