egui/crates
Jonas Wagner b283b8a560
Introduce dithering to reduce banding (#4497)
This PR introduces dithering in the egui_glow and egui_wgpu backends to
reduce banding artifacts.

It's based on the approach mentioned in #4493 with the small difference
that the amount of noise is scaled down slightly to avoid dithering
colors that can be represented exactly. This keeps flat surfaces clean.

Exaggerated dithering to show what is happening:
![Screenshot from 2024-05-14
19-09-48](https://github.com/emilk/egui/assets/293536/75782b83-9023-4cb2-99f7-a24e15fdefcc)

Subtle dithering as commited.
![Screenshot from 2024-05-14
19-13-40](https://github.com/emilk/egui/assets/293536/eb904698-a6ec-494a-952b-447e9a49bfda)

Closes #4493
2024-07-08 09:57:11 +02:00
..
ecolor Release 0.28.1 - Tooltip tweaks 2024-07-05 12:09:21 +02:00
eframe Introduce dithering to reduce banding (#4497) 2024-07-08 09:57:11 +02:00
egui Handle the IME event first in `TextEdit` to fix some bugs (#4794) 2024-07-07 22:03:13 +02:00
egui-wgpu Introduce dithering to reduce banding (#4497) 2024-07-08 09:57:11 +02:00
egui-winit Release 0.28.1 - Tooltip tweaks 2024-07-05 12:09:21 +02:00
egui_demo_app egui_demo_app: include `log::trace` in debug builds 2024-07-01 16:26:20 +02:00
egui_demo_lib Fix typos (#4796) 2024-07-07 08:50:04 +02:00
egui_extras Release 0.28.1 - Tooltip tweaks 2024-07-05 12:09:21 +02:00
egui_glow Introduce dithering to reduce banding (#4497) 2024-07-08 09:57:11 +02:00
egui_plot Fix typos (#4796) 2024-07-07 08:50:04 +02:00
egui_web Fix typos (#2866) 2023-04-18 15:52:45 +02:00
emath Document Vec2 constants 2024-07-05 11:39:47 +02:00
epaint Release 0.28.1 - Tooltip tweaks 2024-07-05 12:09:21 +02:00