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 exposureLinear multiplier, >= 0.
whiteBalance
cpp
glm::vec3 whiteBalancePer-channel RGB multiplier, >= 0.
saturation
cpp
double saturation0 = grayscale, 1 = unchanged, >= 0.
gamma
cpp
double gammaOutput gamma; 1 = unchanged.