Skip to content

backends/drm: make night light colorimetrically correct (only without ICC profiles)

Xaver Hugl requested to merge work/zamundaaa/colorimetric-night-light into master
Instead of just multiplying colors on the output, we also need to adapt them during
compositing, and tell clients using color management about it.
Without this, the primary colors would stay the same in absolute terms, just with
changed strength, but relative to the white point, aka how humans perceive it,
the color becomes more intense (even if darker) and changes.
With this, colors get moved around to be correct relative to the white point, which
makes night light change the image a lot less and makes the result easier on the eyes.

This is a bit like !6113, but it doesn't try to target any specific color temperature and thus is much smaller and doesn't need any UI changes.

without night light master with night light at 2000K this mr with night light at 2000K
Screenshot_20241007_075902 Screenshot_20241007_075834 Screenshot_20241007_075803
20241007_200546 20241007_200149 20241007_200108
Edited by Xaver Hugl

Merge request reports

Loading