Skip to content

raisin::RgbaOutputTransform ​

struct · #include <rayrai/Capture.hpp>

CPU color transform for screenshots/reports (RayraiWindow::transformRgbaForOutput()).

Applied per pixel to the 8-bit values normalized to [0, 1]: multiply by exposure and white balance, scale saturation around Rec. 709 luma, clamp to [0, 1], then apply pow(x, 1 / gamma). Alpha is preserved.

Public attributes ​

exposure ​

cpp
double exposure

Linear multiplier, >= 0.

whiteBalance ​

cpp
glm::vec3 whiteBalance

Per-channel RGB multiplier, >= 0.

saturation ​

cpp
double saturation

0 = grayscale, 1 = unchanged, >= 0.

gamma ​

cpp
double gamma

Output gamma; 1 = unchanged.

RaiSim — physics for robotics and AI.