We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0eaaea4 commit f950769Copy full SHA for f950769
neo/renderer/tr_frontend_addlights.cpp
@@ -302,13 +302,15 @@ static void R_AddSingleLight( viewLight_t* vLight )
302
}
303
304
flod *= numLods;
305
- lod = idMath::Ftoi( flod );
306
307
- if( lod < 0 )
+ if( flod < 0 )
308
{
309
- lod = 0;
+ flod = 0;
310
311
- else if( lod >= numLods )
+
+ lod = idMath::Ftoi( flod );
312
313
+ if( lod >= numLods )
314
315
//lod = numLods - 1;
316
@@ -329,7 +331,7 @@ static void R_AddSingleLight( viewLight_t* vLight )
329
331
330
332
333
// never give ultra quality for point lights
- if( lod == 0 && light->parms.pointLight )
334
+ if( lod == 0 && light->parms.pointLight && !light->parms.parallel )
335
336
lod = 1;
337
0 commit comments