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 exposureLinear multiplier (negative values act as 0).
whiteBalance
cpp
glm::vec3 whiteBalancePer-channel RGB multiplier.
saturation
cpp
double saturation0 = greyscale, 1 = unchanged, above 1 = more saturated.
gamma
cpp
double gammaOutput gamma; values <= 0 are treated as 1.