You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Fixed incorrect rounding in FLinearColor::ToFColor
#rb yuriy.odonnell [CL 14152836 by Rune Stubbe in ue5-main branch]
This commit is contained in:
@@ -134,10 +134,10 @@ FColor FLinearColor::ToFColor(const bool bSRGB) const
|
||||
|
||||
FColor Result;
|
||||
|
||||
Result.A = (uint8)FMath::FloorToInt(FloatA * 255.999f);
|
||||
Result.R = (uint8)FMath::FloorToInt(FloatR * 255.999f);
|
||||
Result.G = (uint8)FMath::FloorToInt(FloatG * 255.999f);
|
||||
Result.B = (uint8)FMath::FloorToInt(FloatB * 255.999f);
|
||||
Result.A = (uint8)FMath::RoundToInt(FloatA * 255.0f);
|
||||
Result.R = (uint8)FMath::RoundToInt(FloatR * 255.0f);
|
||||
Result.G = (uint8)FMath::RoundToInt(FloatG * 255.0f);
|
||||
Result.B = (uint8)FMath::RoundToInt(FloatB * 255.0f);
|
||||
|
||||
return Result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user