Ejemplo n.º 1
0
void CLightManager::Setup (int nLevel)
{
SetMethod ();
if (!gameStates.app.bNostalgia) {
	lightManager.AddGeometryLights ();
	ComputeNearestLights (nLevel);
	lightmapManager.Setup (nLevel);
	}
GatherStaticLights (nLevel);
}
Ejemplo n.º 2
0
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);
}