![]() |
Rendering Engine 0.2.9
Modular Graphics Rendering Engine | v0.2.9
|
Color space conversion utilities (sRGB <-> linear). More...
#include <color_space.hpp>
Static Public Member Functions | |
| static float | SRGBToLinear (float c) |
| Converts a single sRGB channel to linear space. More... | |
| static glm::vec3 | SRGBToLinear (const glm::vec3 &color) |
| Converts an sRGB RGB color to linear space. More... | |
| static float | LinearToSRGB (float c) |
| Converts a single linear channel to sRGB space. More... | |
| static glm::vec3 | LinearToSRGB (const glm::vec3 &color) |
| Converts a single linear channel to sRGB space. More... | |
Color space conversion utilities (sRGB <-> linear).
The rendering engine operates internally in linear color space. Use these helpers when converting colors from UI/design tools (typically sRGB) to linear space before rendering.
Definition at line 21 of file color_space.hpp.
|
static |
Converts a single linear channel to sRGB space.
Definition at line 31 of file Source/color_space.cpp.
|
static |
Converts a single linear channel to sRGB space.
Definition at line 23 of file Source/color_space.cpp.
|
static |
Converts an sRGB RGB color to linear space.
Definition at line 14 of file Source/color_space.cpp.
|
static |
Converts a single sRGB channel to linear space.
Definition at line 6 of file Source/color_space.cpp.