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:
parent
2fe0cf7a4c
commit
3571c0d577
|
|
@ -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,
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue