@@ -1294,9 +1294,10 @@ void Sirens::ProcessPointLights(CVehicle *pVeh)
12941294 }
12951295 sirenRadius = std::clamp (sirenRadius, 5 .0f , 15 .0f );
12961296
1297- float r = std::clamp (activeColor.r / 255 .0f , 0 .0f , 1 .0f );
1298- float g = std::clamp (activeColor.g / 255 .0f , 0 .0f , 1 .0f );
1299- float b = std::clamp (activeColor.b / 255 .0f , 0 .0f , 1 .0f );
1297+ float intensity = LightsConfig::Get ().fPointLightIntensity ;
1298+ float r = std::clamp ((activeColor.r / 255 .0f ) * intensity, 0 .0f , 1 .0f );
1299+ float g = std::clamp ((activeColor.g / 255 .0f ) * intensity, 0 .0f , 1 .0f );
1300+ float b = std::clamp ((activeColor.b / 255 .0f ) * intensity, 0 .0f , 1 .0f );
13001301
13011302 for (auto &e : data.Dummies [mat.first ])
13021303 {
@@ -1369,21 +1370,22 @@ void Sirens::ProcessPointLights(CVehicle *pVeh)
13691370 {
13701371 uint32_t step = (CTimer::m_snTimeInMilliseconds / 120 ) % 4 ;
13711372 CMatrix vehMat = pVeh->GetMatrix ();
1373+ float intensity = LightsConfig::Get ().fPointLightIntensity ;
13721374 if (step == 0 || step == 1 )
13731375 {
13741376 CVector localLeft (-0 .35f , 0 .70f , 0 .45f );
13751377 CVector plightPos = pVeh->TransformFromObjectSpace (localLeft);
13761378 CVector worldDir = vehMat.up - vehMat.at * 0 .25f ;
13771379 worldDir.Normalize ();
1378- CPointLights::AddLight (PLTYPE_SPOTLIGHT , plightPos, worldDir, 8 .5f , 1 .0f , 0 .1f , 0 .1f , 0 , false , nullptr );
1380+ CPointLights::AddLight (PLTYPE_SPOTLIGHT , plightPos, worldDir, 8 .5f , 1 .0f * intensity , 0 .1f * intensity , 0 .1f * intensity , 0 , false , nullptr );
13791381 }
13801382 else if (step == 2 || step == 3 )
13811383 {
13821384 CVector localRight (0 .35f , 0 .70f , 0 .45f );
13831385 CVector plightPos = pVeh->TransformFromObjectSpace (localRight);
13841386 CVector worldDir = vehMat.up - vehMat.at * 0 .25f ;
13851387 worldDir.Normalize ();
1386- CPointLights::AddLight (PLTYPE_SPOTLIGHT , plightPos, worldDir, 8 .5f , 0 .1f , 0 .1f , 1 .0f , 0 , false , nullptr );
1388+ CPointLights::AddLight (PLTYPE_SPOTLIGHT , plightPos, worldDir, 8 .5f , 0 .1f * intensity , 0 .1f * intensity , 1 .0f * intensity , 0 , false , nullptr );
13871389 }
13881390 }
13891391 }
0 commit comments