mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-26 12:08:11 +08:00
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:
@@ -351,7 +351,7 @@ impl NodeRuntime {
|
|||||||
width: physical_resolution.x,
|
width: physical_resolution.x,
|
||||||
height: physical_resolution.y,
|
height: physical_resolution.y,
|
||||||
present_mode: surface_caps.present_modes[0],
|
present_mode: surface_caps.present_modes[0],
|
||||||
alpha_mode: vello::wgpu::CompositeAlphaMode::Opaque,
|
alpha_mode: vello::wgpu::CompositeAlphaMode::PreMultiplied,
|
||||||
view_formats: vec![],
|
view_formats: vec![],
|
||||||
desired_maximum_frame_latency: 2,
|
desired_maximum_frame_latency: 2,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user