Fix Vello canvas on web not being transparent by using premultiplied alpha mode (#3770)

Fix canvas not being transparent by using Premultiplied alpha mode
This commit is contained in:
Timon
2026-02-17 20:48:16 +00:00
committed by GitHub
parent 2fe0cf7a4c
commit 3571c0d577

View File

@@ -351,7 +351,7 @@ impl NodeRuntime {
width: physical_resolution.x,
height: physical_resolution.y,
present_mode: surface_caps.present_modes[0],
alpha_mode: vello::wgpu::CompositeAlphaMode::Opaque,
alpha_mode: vello::wgpu::CompositeAlphaMode::PreMultiplied,
view_formats: vec![],
desired_maximum_frame_latency: 2,
},