mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2024-12-11 13:11:47 +00:00
Shadow LOD fix for parallel lights
This commit is contained in:
parent
0eaaea4b96
commit
f95076984f
1 changed files with 8 additions and 6 deletions
|
@ -302,13 +302,15 @@ static void R_AddSingleLight( viewLight_t* vLight )
|
|||
}
|
||||
|
||||
flod *= numLods;
|
||||
|
||||
if( flod < 0 )
|
||||
{
|
||||
flod = 0;
|
||||
}
|
||||
|
||||
lod = idMath::Ftoi( flod );
|
||||
|
||||
if( lod < 0 )
|
||||
{
|
||||
lod = 0;
|
||||
}
|
||||
else if( lod >= numLods )
|
||||
if( lod >= numLods )
|
||||
{
|
||||
//lod = numLods - 1;
|
||||
}
|
||||
|
@ -329,7 +331,7 @@ static void R_AddSingleLight( viewLight_t* vLight )
|
|||
}
|
||||
|
||||
// never give ultra quality for point lights
|
||||
if( lod == 0 && light->parms.pointLight )
|
||||
if( lod == 0 && light->parms.pointLight && !light->parms.parallel )
|
||||
{
|
||||
lod = 1;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue