Skip to content

Make SDR white luminance variable and add HDR brightness factor

Jonas Ådahl requested to merge jadahl/mutter:wip/clutter-color-manager into main

This adds two things:

  • The hard coded sRGB white luminance value (203) is replaced with a uniform managed by a new object ClutterColorManager owned by ClutterContext.
  • In addition to being able to tweak the sRGB brightness, a factor called "HDR luminance gain" is added that can make "HDR" content (i.e. everything when HDR is enabled).

These are meant to make it easier to experiment, which is possible to do via looking glass. For example, to change the sRGB white luminance level to e.g. 400, instead of 203, one can do the following:

global.stage.context.get_color_manager().srgb_white_luminance = 400

Merge request reports