Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/Core/Public/Math/Color.h |
Include |
#include "Math/Color.h" |
Source |
/Engine/Source/Runtime/Core/Private/Math/Color.cpp |
FColor QuantizeRound() const
Quantizes the linear color with rounding and returns the result as a FColor. This bypasses the SRGB conversion. QuantizeRound can be dequantized back to linear with FColor::ReinterpretAsLinear (just /255.f) this matches the GPU U8<->float conversion spec and should be preferred