Small corrections to dmap

This commit is contained in:
Robert Beckebans 2014-08-02 15:09:25 +02:00
parent 352df659a8
commit e03ed8769d
10 changed files with 70 additions and 35 deletions

View file

@ -469,6 +469,16 @@ static void CreateMapLight( const idMapEntity* mapEnt )
R_DeriveLightData( &light->def );
// RB begin
idRenderMatrix::GetFrustumPlanes( light->frustumPlanes, light->def.baseLightProject, true, true );
// the DOOM 3 frustum planes point outside the frustum
for( int i = 0; i < 6; i++ )
{
light->frustumPlanes[i] = -light->frustumPlanes[i];
}
// RB end
// get the name for naming the shadow surfaces
const char* name;