Beispiel #1
0
	void LightManager::RenderShadowMaps(CameraPtr pCamera)
	{
		LightPtr pLight = GetNextAffectingLight(LightPtr(), pCamera->GetViewFrustum());
		while(pLight)
		{
			if(pLight->GetCastShadow())
			{
				pLight->RenderShadowMap(m_pRenderManager);
			}
			pLight = GetNextAffectingLight(pLight, pCamera->GetViewFrustum());
		}
	}
Beispiel #2
0
	void LightManager::RenderLights()
	{
		LightPtr pLight = GetNextAffectingLight(LightPtr(), ViewFrustum());
		while(pLight)
		{
			if(pLight->GetEnabled())
			{
				pLight->RenderLight(m_pRenderSystem);
			}
			pLight = GetNextAffectingLight(pLight, ViewFrustum());
		}
	}
Beispiel #3
0
	void LightManager::RenderLights(CameraPtr pCamera)
	{
		
		LightPtr pLight = GetNextAffectingLight(LightPtr(), pCamera->GetViewFrustum());
		while(pLight)
		{
			if(pLight->GetEnabled())
			{
				pLight->RenderLight(m_pRenderManager);
			}
			pLight = GetNextAffectingLight(pLight, pCamera->GetViewFrustum());
		}
	}