GenerateLightmaps /Environment and display

bool GenerateLightmaps()

Recalculates scene static lightmaps (more about how static lights affect static entities). This function may be used to reset lighting whenever a static entity is added, moved or removed.

Light calculations may become quite costly depending on how many lights the scene has.