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 |
||
|---|---|---|
| .. | ||
| examples | ||
| src | ||
| CHANGELOG.md | ||
| Cargo.toml | ||
| README.md | ||
README.md
egui_glow
This crates provides bindings between egui and glow which allows you to:
- Render egui using glow on both native and web.
- Write cross platform native egui apps (with the
winitfeature).
To write web apps using glow you can use eframe (which uses egui_glow for rendering).
To use on Linux, first run:
sudo apt-get install libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev libxkbcommon-dev libssl-dev
This crate optionally depends on egui-winit.
Test the example with:
cargo run -p egui_glow --example pure_glow --features=winit,egui/default_fonts