|
|
|
@ -176,7 +176,7 @@ rect2d getMapViewport()
|
|
|
|
|
}
|
|
|
|
|
return mkrect_wh(1,1,view_rb,view_height+1);
|
|
|
|
|
}
|
|
|
|
|
lightingEngineViewscreen::lightingEngineViewscreen(renderer_light* target):lightingEngine(target)
|
|
|
|
|
lightingEngineViewscreen::lightingEngineViewscreen(renderer_light* target):lightingEngine(target),doDebug(false)
|
|
|
|
|
{
|
|
|
|
|
reinit();
|
|
|
|
|
defaultSettings();
|
|
|
|
@ -429,9 +429,9 @@ void lightingEngineViewscreen::updateWindow()
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//if(showOcupancy)
|
|
|
|
|
//std::swap(ocupancy,myRenderer->lightGrid);
|
|
|
|
|
//else
|
|
|
|
|
if(doDebug)
|
|
|
|
|
std::swap(ocupancy,myRenderer->lightGrid);
|
|
|
|
|
else
|
|
|
|
|
std::swap(lightMap,myRenderer->lightGrid);
|
|
|
|
|
rect2d vp=getMapViewport();
|
|
|
|
|
|
|
|
|
|