Michel Dänzer 60dd2cd7a8 lightbox: Use variable magnitude for dithering noise
The magnitude of the noise in the final output scales with:

 1.0 - cogl_color_out.a

A fixed value for the magnitude relative to cogl_color_out.a might be
too small for large cogl_color_out.a or too large for small
cogl_color_out.a (or possibly even both).

Compensate for this to achieve constant magnitude in the final output.
The coefficients were determined experimentally as a compromise between
preventing colour banding with dark background content and tolerable
noise with bright background content.

This helps for the issue described in
https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7795 .

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3572>
2024-12-16 15:17:25 +00:00
..
2024-07-11 14:03:22 +02:00
2024-07-30 18:20:55 +00:00
2024-07-30 18:20:55 +00:00
2024-07-30 18:20:55 +00:00
2024-07-30 18:20:55 +00:00
2024-07-30 18:20:55 +00:00
2024-07-30 18:20:55 +00:00
2023-08-06 13:02:49 +02:00
2024-07-30 18:20:55 +00:00
2024-07-30 18:20:55 +00:00
2024-11-12 11:21:02 +00:00
2024-07-30 18:20:55 +00:00
2024-07-30 18:20:55 +00:00
2024-07-30 18:20:55 +00:00
2024-07-30 18:20:55 +00:00
2024-07-30 18:20:55 +00:00
2024-07-30 18:20:55 +00:00
2024-01-04 18:59:33 +00:00
2024-07-30 18:20:55 +00:00
2024-07-30 18:20:55 +00:00
2024-07-30 18:20:55 +00:00
2024-07-30 18:20:55 +00:00
2024-07-30 18:20:55 +00:00
2024-07-30 18:20:55 +00:00
2024-10-21 12:03:23 +02:00
2024-07-30 18:20:55 +00:00
2024-07-30 18:20:55 +00:00
2024-07-30 18:20:55 +00:00
2024-07-30 18:20:55 +00:00
2024-07-30 18:20:55 +00:00
2024-07-30 18:20:55 +00:00
2024-07-30 18:20:55 +00:00
2024-07-30 18:20:55 +00:00
2024-07-30 18:20:55 +00:00
2024-07-30 18:20:55 +00:00
2024-07-30 18:20:55 +00:00
2024-07-30 18:20:55 +00:00
2024-07-30 18:20:55 +00:00