![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <ColorSpace.h>
Static Public Member Functions | |
| static CORE_API const FColorSpace & | GetWorking () |
| static CORE_API void | SetWorking (FColorSpace ColorSpace) |
| static CORE_API const FColorSpace & | GetSRGB () |
| static CORE_API TStaticArray< FVector2d, 4 > | MakeChromaticities (UE::Color::EColorSpace ColorSpaceType) |
Friends | |
| FArchive & | operator<< (FArchive &Ar, FColorSpace &CS) |
Color space definition as 4 chromaticity coordinates, in double precision internally.
|
inline |
Constructor
|
explicit |
Constructor
| InRed | Chromaticity 2D coordinates for the red color. |
| InGreen | Chromaticity 2D coordinates for the green color. |
| InBlue | Chromaticity 2D coordinates for the blue color. |
| InWhite | Chromaticity 2D coordinates for the white point. |
|
explicit |
Constructor
| ColorSpaceType | Color space type. |
|
default |
|
default |
| bool UE::Color::FColorSpace::Equals | ( | const FColorSpace & | ColorSpace, |
| double | Tolerance = 1.e-7 |
||
| ) | const |
Check against another color space for equality, within specified error limits.
| ColorSpace | The color space to check against. |
| Tolerance | Error tolerance. |
| bool UE::Color::FColorSpace::Equals | ( | const TStaticArray< FVector2d, 4 > & | InChromaticities, |
| double | Tolerance = 1.e-7 |
||
| ) | const |
Check against color space chromaticities for equality, within specified error limits.
| InChromaticities | The color space chromaticities to check against. |
| Tolerance | Error tolerance. |
|
inline |
Gets the color space's blue chromaticity coordinates.
|
inline |
Getter for the color space chromaticity coordinates.
| OutRed | FVector2d for the red color chromaticity coordinate. |
| OutGreen | FVector2d for the green color chromaticity coordinate. |
| OutBlue | FVector2d for the blue color chromaticity coordinate. |
| OutWhite | FVector2d for the white color chromaticity coordinate. |
|
inline |
Gets the color space's green chromaticity coordinates.
| float UE::Color::FColorSpace::GetLuminance | ( | const FLinearColor & | Color | ) | const |
Calculate the color's luminance value in the current space.
| Color | The sampled color. |
| FLinearColor UE::Color::FColorSpace::GetLuminanceFactors | ( | ) | const |
Get the luminance factors in the current space.
|
inline |
Gets the color space's red chromaticity coordinates.
|
inline |
Gets the RGB-to-XYZ conversion matrix.
|
static |
Get a (statically cached) sRGB color space.
|
inline |
Gets the color space's white point chromaticity coordinates.
|
static |
Get the global engine working color space (as a singleton).
NOTE: Addresses issue where shader compilation can request the working color space before it has been loaded by renderer settings. We optionally early-load the settings here and leave existing singleton interface as is.
|
inline |
Gets the XYZ-to-RGB conversion matrix.
| bool UE::Color::FColorSpace::IsSRGB | ( | ) | const |
Convenience function to verify if the color space matches the engine's default sRGB chromaticities.
|
static |
Make the chromaticities of the color space type.
| FLinearColor UE::Color::FColorSpace::MakeFromColorTemperature | ( | float | Temp | ) | const |
Converts temperature in Kelvins of a black body radiator to an RGB color in the current space.
|
inline |
Check against another color space for inequality.
| ColorSpace | The color space to check against. |
|
default |
|
default |
|
inline |
Check against another color space for equality.
| ColorSpace | The vector to check against. |
|
static |
Set the global engine working color space (as a singleton).
| ColorSpace | working color space |
|
friend |
Serializer.
| Ar | The Serialization Archive. |
| CS | The Color Space being serialized. |