class

FColorSpace

The IEC 61966-2-1 sRGB transfer pair, the same curve the GPU applies when it samples or writes an _SRGB format. The plain pair does not clamp, so values outside [0, 1] stay on the curve's linear and power segments; the byte forms saturate first because a byte cannot hold anything else.

Module
Math
Header
#include "Math/ColorSpace.h"
Namespace
Mowo

Public functions

Function details

SrgbToLinear

C++
static float SrgbToLinear(float c)

LinearToSrgb

C++
static float LinearToSrgb(float c)

SaturatedSrgbToLinear

C++
static float SaturatedSrgbToLinear(float c)

SaturatedLinearToSrgb

C++
static float SaturatedLinearToSrgb(float c)

LinearToSrgbByte

C++
static uint8_t LinearToSrgbByte(float c)

SrgbByteToLinear

C++
static float SrgbByteToLinear(uint8_t v)
Generated from Math/ColorSpace.h via math.json · Nov 4, 2026Version 1.0.0