Fix missing lights when baking a map with vktool
This commit is contained in:
parent
23e4c46684
commit
5299453486
2 changed files with 4 additions and 1 deletions
|
|
@ -53,6 +53,9 @@ void LightmapBuildCmdlet::OnCommand(FArgs args)
|
|||
Printf("Lightmap is not enabled in this level.\n");
|
||||
}
|
||||
|
||||
if (level.levelMesh)
|
||||
level.levelMesh->BeginFrame(level);
|
||||
|
||||
Printf("Baking lightmaps. Please wait...\n");
|
||||
|
||||
uint32_t atlasPixelCount = level.levelMesh->AtlasPixelCount();
|
||||
|
|
|
|||
|
|
@ -3046,7 +3046,7 @@ bool MapLoader::LoadLightmap(MapData* map)
|
|||
int version = fr.ReadInt32();
|
||||
if (version < LIGHTMAPVER)
|
||||
{
|
||||
Printf(PRINT_HIGH, "LoadLightmap: This is an old unsupported version of the lightmap lump. Please rebuild the map with the console commands 'deletelightmap', and then 'savelightmap'.\n");
|
||||
Printf(PRINT_HIGH, "LoadLightmap: This is an old unsupported version of the lightmap lump. Please rebuild the map with %s.\n", TOOLNAMELOWERCASE);
|
||||
return false;
|
||||
}
|
||||
else if (version != LIGHTMAPVER)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue