fix(rendering): enable alpha blending
This commit is contained in:
parent
f2bb6e235c
commit
69cc0b264c
1 changed files with 2 additions and 2 deletions
|
@ -61,7 +61,7 @@ impl WgpuRenderer<'_> {
|
||||||
view: &view,
|
view: &view,
|
||||||
resolve_target: None,
|
resolve_target: None,
|
||||||
ops: wgpu::Operations {
|
ops: wgpu::Operations {
|
||||||
load: wgpu::LoadOp::Clear(wgpu::Color::BLACK),
|
load: wgpu::LoadOp::Clear(wgpu::Color::WHITE),
|
||||||
store: wgpu::StoreOp::Store,
|
store: wgpu::StoreOp::Store,
|
||||||
},
|
},
|
||||||
})],
|
})],
|
||||||
|
@ -256,7 +256,7 @@ impl WgpuState {
|
||||||
});
|
});
|
||||||
let var_name = [Some(wgpu::ColorTargetState {
|
let var_name = [Some(wgpu::ColorTargetState {
|
||||||
format: surface.get_capabilities(&adapter).formats[0],
|
format: surface.get_capabilities(&adapter).formats[0],
|
||||||
blend: Some(wgpu::BlendState::REPLACE),
|
blend: Some(wgpu::BlendState::ALPHA_BLENDING),
|
||||||
write_mask: wgpu::ColorWrites::ALL,
|
write_mask: wgpu::ColorWrites::ALL,
|
||||||
})];
|
})];
|
||||||
let pipeline_descriptor = wgpu::RenderPipelineDescriptor {
|
let pipeline_descriptor = wgpu::RenderPipelineDescriptor {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue