示例#1
0
void CLightManager::Setup (int nLevel)
{
SetMethod ();
if (!gameStates.app.bNostalgia) {
	lightManager.AddGeometryLights ();
	ComputeNearestLights (nLevel);
	lightmapManager.Setup (nLevel);
	}
GatherStaticLights (nLevel);
}
示例#2
0
文件: dynlight.cpp 项目: paud/d2x-xl
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);
}