void CLightManager::Setup (int nLevel) { SetMethod (); if (!gameStates.app.bNostalgia) { lightManager.AddGeometryLights (); ComputeNearestLights (nLevel); lightmapManager.Setup (nLevel); } GatherStaticLights (nLevel); }
void CLightManager::Setup (int nLevel) { SetMethod (); if (!gameStates.app.bNostalgia) { lightManager.AddGeometryLights (); ComputeNearestLights (nLevel); if (gameStates.render.bPerPixelLighting) { lightmapManager.Create (nLevel); if (lightmapManager.HaveLightmaps ()) meshBuilder.RebuildLightmapTexCoord (); //rebuild to create proper lightmap texture coordinates else gameOpts->render.bUseLightmaps = 0; } } GatherStaticLights (nLevel); }