MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / LoadLightmaps

Method LoadLightmaps

Source/Engine/Level/Scene/SceneLightmapsData.cpp:47–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47void SceneLightmapsData::LoadLightmaps(Array<SavedLightmapInfo>& lightmaps)
48{
49 // Unload previous
50 UnloadLightmaps();
51
52 if (lightmaps.IsEmpty())
53 return;
54 LOG(Info, "Loading {0} lightmap(s)", lightmaps.Count());
55
56 for (int32 i = 0; i < lightmaps.Count(); i++)
57 {
58 _lightmaps.Add(New<Lightmap>(this, i, lightmaps[i]));
59 }
60}
61
62void SceneLightmapsData::UnloadLightmaps()
63{

Callers 1

DeserializeMethod · 0.80

Calls 3

IsEmptyMethod · 0.45
CountMethod · 0.45
AddMethod · 0.45

Tested by

no test coverage detected