mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-08-04 13:30:48 +00:00
Set Vello to render an explicit background color behind artboards (#1902)
* Set explicit background color * Add todo comment for chrome bug
This commit is contained in:
parent
00864e274f
commit
25a82d100f
1 changed files with 4 additions and 2 deletions
|
@ -145,7 +145,7 @@ impl WgpuExecutor {
|
|||
width,
|
||||
height,
|
||||
present_mode: surface_caps.present_modes[0],
|
||||
alpha_mode: surface_caps.alpha_modes[0],
|
||||
alpha_mode: wgpu::CompositeAlphaMode::Opaque,
|
||||
view_formats: vec![],
|
||||
desired_maximum_frame_latency: 2,
|
||||
},
|
||||
|
@ -153,7 +153,9 @@ impl WgpuExecutor {
|
|||
let surface_texture = surface.get_current_texture()?;
|
||||
|
||||
let render_params = RenderParams {
|
||||
base_color: vello::peniko::Color::TRANSPARENT,
|
||||
// We are using an explicit opaque color here to eliminate the alpha premulitplication step
|
||||
// which would be required to support a transparent webgpu canvas
|
||||
base_color: vello::peniko::Color::rgb8(0x22, 0x22, 0x22),
|
||||
width,
|
||||
height,
|
||||
antialiasing_method: AaConfig::Msaa8,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue