|
|
@ -156,7 +156,11 @@ void R_PushDlights( void ) |
|
|
|
tr.dlightframecount = tr.framecount; |
|
|
|
tr.dlightframecount = tr.framecount; |
|
|
|
|
|
|
|
|
|
|
|
RI.currententity = CL_GetEntityByIndex( 0 ); |
|
|
|
RI.currententity = CL_GetEntityByIndex( 0 ); |
|
|
|
if( RI.currententity ) |
|
|
|
|
|
|
|
|
|
|
|
// no world -- no dlights
|
|
|
|
|
|
|
|
if( !RI.currententity ) |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
|
|
|
|
RI.currentmodel = RI.currententity->model; |
|
|
|
RI.currentmodel = RI.currententity->model; |
|
|
|
|
|
|
|
|
|
|
|
for( i = 0; i < MAX_DLIGHTS; i++, l++ ) |
|
|
|
for( i = 0; i < MAX_DLIGHTS; i++, l++ ) |
|
|
@ -169,7 +173,6 @@ void R_PushDlights( void ) |
|
|
|
//if( GL_FrustumCullSphere( &RI.frustum, l->origin, l->radius, 15 ))
|
|
|
|
//if( GL_FrustumCullSphere( &RI.frustum, l->origin, l->radius, 15 ))
|
|
|
|
//continue;
|
|
|
|
//continue;
|
|
|
|
|
|
|
|
|
|
|
|
if( RI.currententity ) |
|
|
|
|
|
|
|
R_MarkLights( l, 1<<i, RI.currentmodel->nodes ); |
|
|
|
R_MarkLights( l, 1<<i, RI.currentmodel->nodes ); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|