/* ================ CG_AddLocalLight ================ */ static void CG_AddLocalLight( localEntity_t *le ) { // There should be a light if this is being used, but hey... if ( le->light ) { float light; light = (float)( cg.time - le->startTime ) / ( le->endTime - le->startTime ); if ( light < 0.5 ) { light = 1.0; } else { light = 1.0 - ( light - 0.5 ) * 2; } light = le->light * light; cgi_R_AddLightToScene( le->refEntity.origin, light, le->lightColor[0], le->lightColor[1], le->lightColor[2] ); } }
//------------------------------------------------------ void SFxHelper::AddLightToScene( vec3_t org, float radius, float red, float green, float blue ) { cgi_R_AddLightToScene( org, radius, red, green, blue ); }