Skip to content

Commit

Permalink
Light color calculation fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Hirek193 committed Jan 7, 2025

Unverified

This user has not yet uploaded their public signing key.
1 parent e2b5a6d commit a7bf952
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lightarray.cpp
Original file line number Diff line number Diff line change
@@ -87,9 +87,9 @@ light_array::update() {
( ( lights & light::headlight_right | light::highbeamlight_right) ? 1.f : 0.f ) };

light.color = {
light.owner->MoverParameters->refR / 255,
light.owner->MoverParameters->refG / 255,
light.owner->MoverParameters->refB / 255
static_cast<float>(light.owner->MoverParameters->refR) / 255.0f,
static_cast<float>(light.owner->MoverParameters->refG) / 255.0f,
static_cast<float>(light.owner->MoverParameters->refB) / 255.0f
};

if (light.owner->DimHeadlights && !light.owner->HighBeamLights) // tylko przyciemnione

0 comments on commit a7bf952

Please sign in to comment.