1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-02 14:50:03 -04:00

Fix alpha blending in WebGL2 backend (#650)

Add a render-to-texture step with an sRGBA8 texture
This commit is contained in:
AsmPrgmC3
2021-08-25 21:28:42 +02:00
committed by GitHub
parent a256337856
commit 31a1882997
11 changed files with 230 additions and 54 deletions

View File

@@ -12,7 +12,7 @@ impl Default for Painting {
fn default() -> Self {
Self {
lines: Default::default(),
stroke: Stroke::new(2.0, Color32::LIGHT_BLUE), // Thin strokes looks bad on web
stroke: Stroke::new(1.0, Color32::LIGHT_BLUE),
}
}
}