class

FColorVision

FColorVision — the colour-vision deficiency model the tonemap pass applies (Tonemap.hlsl: ColorVisionMatrix, ApplyColorVisionSimulation, ApplyColorVisionCorrection), on the CPU: Machado, Oliveira and Fernandes 2009 at severity 1, in linear light. Simulation shows what a viewer with the deficiency sees; correction takes the difference that simulation lost and folds it into the channels that viewer still separates. The shader and this header carry the same numbers; the colour-vision row checks these.

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

Public functions

ReturnsNameDescription
Vec3Row
Vec3SimulateLinear
Vec3CorrectLinear
Vec3SimulateDisplay-encoded (sRGB) in and out, as the pass runs after the tonemap.
Vec3Correct
floatSaturate
Vec3ToLinear
Vec3ToEncoded

Function details

Row

C++
static Vec3 Row(EColorVision mode, int row)

SimulateLinear

C++
static Vec3 SimulateLinear(EColorVision mode, const Vec3& linear)

CorrectLinear

C++
static Vec3 CorrectLinear(EColorVision mode, const Vec3& linear, float strength)

Simulate

C++
static Vec3 Simulate(EColorVision mode, const Vec3& encoded)

Display-encoded (sRGB) in and out, as the pass runs after the tonemap.

Correct

C++
static Vec3 Correct(EColorVision mode, const Vec3& encoded, float strength)

Saturate

C++
static float Saturate(float v)

ToLinear

C++
static Vec3 ToLinear(const Vec3& encoded)

ToEncoded

C++
static Vec3 ToEncoded(const Vec3& linear)
Generated from Math/ColorVision.h via math.json · Nov 4, 2026Version 1.0.0