Skip to content

colors/colordevice: make channel factors linear

Xaver Hugl requested to merge work/zamundaaa/linearnightcolor into master

The redshift table is in gamma 2.2 encoding and not linear, which means that it only yields correct results with 1.0 pixel values. It also means that when it's being applied in linear space in the color management shaders, the result is quite wrong.

To fix that, this commit makes the channel factors linear and the backend calculates the nonlinear factors where needed.

Merge request reports