Skip to content

raisin::RayraiWindow::RgbaOutputTransform ​

struct · #include <rayrai/RayraiWindow.hpp>

CPU output transform for screenshots (see transformRgbaForOutput()).

Applied per pixel in this order: multiply by exposure and white balance, scale saturation around Rec. 709 luma, clamp to [0, 1], then apply value^(1/gamma). The identity defaults leave pixels unchanged.

Public attributes ​

exposure ​

cpp
double exposure

Linear multiplier (negative values act as 0).

whiteBalance ​

cpp
glm::vec3 whiteBalance

Per-channel RGB multiplier.

saturation ​

cpp
double saturation

0 = greyscale, 1 = unchanged, above 1 = more saturated.

gamma ​

cpp
double gamma

Output gamma; values <= 0 are treated as 1.

RaiSim — physics for robotics and AI.