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:

Subtle dithering as commited.

Closes #4493
|
2024-07-08 09:57:11 +02:00 |